2022-05-03 12:38:14 +00:00
|
|
|
FROM alpine as base
|
2022-04-29 02:09:40 +00:00
|
|
|
|
2022-05-03 12:38:14 +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
|
2022-04-30 09:55:28 +00:00
|
|
|
ADD yarn.lock package.json ./
|
2022-04-29 02:40:13 +00:00
|
|
|
RUN yarn install --production
|
|
|
|
|
2022-05-03 12:38:14 +00:00
|
|
|
FROM alpine as prod
|
2022-04-30 08:43:24 +00:00
|
|
|
|
2022-05-03 12:38:14 +00:00
|
|
|
RUN apk add --no-cache nodejs yarn openssl tini
|
2022-04-30 08:43:24 +00:00
|
|
|
WORKDIR /app
|
|
|
|
COPY --from=base /app /app
|
2022-04-30 09:55:28 +00:00
|
|
|
ADD . .
|
2022-05-03 12:38:14 +00:00
|
|
|
|
|
|
|
ENTRYPOINT ["/sbin/tini", "--"]
|
2022-04-29 16:37:53 +00:00
|
|
|
CMD ["yarn", "start"]
|