1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-28 00:06:53 +01:00
unleash.unleash/Dockerfile

33 lines
540 B
Docker
Raw Normal View History

ARG NODE_VERSION=16-alpine
FROM node:$NODE_VERSION as builder
RUN echo "Debug - node version: $NODE_VERSION "
WORKDIR /unleash
COPY . /unleash
2022-08-29 15:00:04 +02:00
RUN yarn config set network-timeout 300000
RUN yarn install --frozen-lockfile && yarn run local:package
WORKDIR /unleash/docker
RUN yarn install --frozen-lockfile --production=true
FROM node:$NODE_VERSION
ENV NODE_ENV production
WORKDIR /unleash
COPY --from=builder /unleash/docker /unleash
RUN rm -rf /usr/local/lib/node_modules/npm/
EXPOSE 4242
USER node
CMD ["node", "index.js"]