diff --git a/api/Dockerfile b/api/Dockerfile new file mode 100644 index 00000000..bd7e027d --- /dev/null +++ b/api/Dockerfile @@ -0,0 +1,17 @@ +FROM node:10 AS builder +MAINTAINER OhMyForm + +WORKDIR /usr/src/app + +# just copy everhing +COPY . . + +RUN yarn install --frozen-lockfile +RUN yarn build + +FROM node:10-alpine + +COPY --from=builder /usr/src/app /usr/src/app + +EXPOSE 3000 +CMD [ "yarn", "start:prod" ]