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/qmi-cloud-worker/Dockerfile
Manuel Romero ab5ab80765 Test watchtower
2021-10-06 17:48:02 +02:00

19 lines
359 B
Docker

# Stage 1: NOTE: context is actually ../
FROM node:15.12.0-alpine AS sources
RUN apk --no-cache add yarn git
WORKDIR /app
ADD ./qmi-cloud-worker ./
ADD ./qmi-cloud-common ../qmi-cloud-common
RUN yarn install --production
# Stage 2:
FROM node:15.12.0-alpine AS production
WORKDIR /app
COPY --from=sources /app ./
CMD ["node", "-r", "esm", "index.js"]