add api docker build

This commit is contained in:
wodka 2019-09-11 00:02:40 +02:00
parent 10d6492949
commit 2dac042b0a

17
api/Dockerfile Normal file
View File

@ -0,0 +1,17 @@
FROM node:10 AS builder
MAINTAINER OhMyForm <admin@ohmyform.com>
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" ]