Created
May 14, 2024 15:57
-
-
Save davidmroth/720c2134230c03bed45854fee2e23611 to your computer and use it in GitHub Desktop.
Dockerfile Conditional ARGS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node:latest | |
ARG YARN_OFFLINE | |
WORKDIR /app | |
# Install app dependencies | |
COPY package.json ./package.json | |
RUN yarn ${YARN_OFFLINE:+--offline} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment