111d2df90c
* Fix missing yarn.lock * Add --frozen-lockfile flag to speed up install deps * Make sure node_modules do not contains devDependencies * Add --targe stage docker build
13 lines
135 B
Docker
13 lines
135 B
Docker
FROM mhart/alpine-node
|
|
|
|
WORKDIR /app
|
|
|
|
COPY . .
|
|
|
|
RUN yarn install --frozen-lockfile
|
|
|
|
RUN yarn build
|
|
|
|
EXPOSE 3000
|
|
|
|
CMD ["yarn", "start"]
|