Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

Commit

Permalink
feat: dockerfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
aaitor committed Jun 27, 2024
1 parent 23867c0 commit d42538c
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
20 changes: 20 additions & 0 deletions api.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
FROM node:18-alpine
LABEL maintainer="Nevermined <root@nevermined.io>"

WORKDIR /agent

RUN apk add --no-cache autoconf automake alpine-sdk bash

COPY package.json ./
COPY yarn.lock ./

COPY src ./src
COPY package.json ./
COPY tsconfig* ./


RUN yarn
RUN yarn database:run-migrations
RUN mkdir dist

ENTRYPOINT ["yarn", "start:api:prod"]
20 changes: 20 additions & 0 deletions processor.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
FROM node:18-alpine
LABEL maintainer="Nevermined <root@nevermined.io>"

WORKDIR /agent

RUN apk add --no-cache autoconf automake alpine-sdk bash

COPY package.json ./
COPY yarn.lock ./

COPY src ./src
COPY package.json ./
COPY tsconfig* ./


RUN yarn
RUN yarn database:run-migrations
RUN mkdir dist

ENTRYPOINT ["yarn", "start:proc:prod"]

0 comments on commit d42538c

Please sign in to comment.