Files
qmi-cloud/qmi-cloud-cli/Dockerfile
Manuel Romero 2fd05a2b54 adding git
2021-04-15 14:43:05 +02:00

22 lines
400 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-cli ./
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 ./
RUN chmod a+x ./shell-utils/*.sh
ENTRYPOINT ["sh", "/app/shell-utils/check.sh"]