mirror of
https://github.com/roleypoly/roleypoly-v1.git
synced 2025-04-25 04:09:12 +00:00
13 lines
327 B
Docker
13 lines
327 B
Docker
FROM node:10 AS builder
|
|
WORKDIR /src
|
|
COPY . /src
|
|
# we double yarn here to strip off dev-only packages that are needed at build time.
|
|
RUN yarn --frozen-lockfile &&\
|
|
yarn build &&\
|
|
yarn --prod --frozen-lockfile
|
|
|
|
FROM mhart/alpine-node:10
|
|
ENV NODE_ENV production
|
|
WORKDIR /dist
|
|
COPY --from=builder /src /dist
|
|
CMD npm start
|