actual-server/Dockerfile

16 lines
366 B
Docker
Raw Normal View History

FROM node:16-bullseye as base
2022-04-29 02:09:40 +00:00
RUN apt-get update && apt-get install -y openssl
RUN mkdir /app
WORKDIR /app
ENV NODE_ENV=production
ADD . .
2022-04-29 02:40:13 +00:00
RUN yarn install --production
FROM node:16-bullseye-slim as prod
RUN apt-get update && apt-get install openssl && apt-get clean -y && rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY --from=base /app /app
CMD ["yarn", "start"]