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-cli/Dockerfile
2020-06-05 14:50:32 +02:00

22 lines
390 B
Docker

# Stage 1: NOTE: context is actually ../
FROM node:13.8-alpine AS sources
RUN apk --no-cache add yarn
WORKDIR /app
ADD ./qmi-cloud-cli ./
ADD ./qmi-cloud-common ../qmi-cloud-common
RUN yarn install --production
# Stage 2:
FROM node:13.8-alpine AS production
WORKDIR /app
COPY --from=sources /app ./
RUN chmod a+x ./shell-utils/*.sh
ENTRYPOINT ["sh", "/app/shell-utils/check.sh"]