This repository has been archived on 2025-12-25. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
qmi-cloud/Dockerfile
Manuel Romero 79645e3d9f delete yarnrc
2025-02-10 22:41:15 +01:00

30 lines
534 B
Docker

# Stage 1:
FROM node:20.14-alpine AS sources
WORKDIR /app
ADD ./package.json ./
ADD ./.npmrc ./
RUN yarn install --production
# Stage 2:
FROM node:20.14-alpine AS production
ARG BUILD_ENV
RUN echo "Building enviroment is: $BUILD_ENV"
WORKDIR /app
COPY --from=sources /app/node_modules ./node_modules
COPY --from=sources /app/package.json ./package.json
COPY ./server ./server
COPY ./config ./config
COPY ./dist${BUILD_ENV} ./dist
COPY ./mystatsmashup ./mystatsmashup
EXPOSE 3000
EXPOSE 3100
CMD ["node", "server/server"]