add api docker build
This commit is contained in:
parent
10d6492949
commit
2dac042b0a
17
api/Dockerfile
Normal file
17
api/Dockerfile
Normal 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" ]
|
||||
Loading…
x
Reference in New Issue
Block a user