actual-server/Dockerfile

19 lines
354 B
Docker
Raw Normal View History

FROM alpine as base
2022-04-29 02:09:40 +00:00
RUN apk add --no-cache nodejs yarn openssl tini
2022-04-29 02:09:40 +00:00
RUN mkdir /app
WORKDIR /app
ENV NODE_ENV=production
ADD yarn.lock package.json ./
2022-04-29 02:40:13 +00:00
RUN yarn install --production
FROM alpine as prod
RUN apk add --no-cache nodejs yarn openssl tini
WORKDIR /app
COPY --from=base /app /app
ADD . .
ENTRYPOINT ["/sbin/tini", "--"]
CMD ["yarn", "start"]