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
2021-04-13 14:50:20 +02:00

27 lines
563 B
Docker

# Stage 1:
FROM node:15.12.0-alpine AS sources
RUN apk --no-cache add yarn git
WORKDIR /var/www/app
ADD ./package.json ./
ADD ./yarn.lock ./
ADD ./qmi-cloud-common ./qmi-cloud-common
RUN yarn install --production
# Stage 2:
FROM node:15.12.0-alpine AS production
WORKDIR /var/www/app
COPY --from=sources /var/www/app/node_modules ./node_modules
COPY --from=sources /var/www/app/package.json ./package.json
COPY ./server ./server
COPY ./dist ./dist
COPY ./mystatsmashup ./mystatsmashup
EXPOSE 3000
EXPOSE 3100
CMD ["node", "-r", "esm", "server/server"]