Skip to content

Instantly share code, notes, and snippets.

@davidmroth
Created May 14, 2024 15:57
Show Gist options
  • Save davidmroth/720c2134230c03bed45854fee2e23611 to your computer and use it in GitHub Desktop.
Save davidmroth/720c2134230c03bed45854fee2e23611 to your computer and use it in GitHub Desktop.
Dockerfile Conditional ARGS
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