Skip to content

Commit

Permalink
Setting variables as build args
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel Hill committed Aug 22, 2022
1 parent d16c0c7 commit b69e7b6
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,14 @@ RUN npm install -g @angular/cli

COPY . /app

ENV GOOGLE_API_KEY=$GOOGLE_API_KEY
ENV DISRUPTIONS_HOST=$DISRUPTIONS_HOST
ARG GOOGLE_API_KEY
ARG DISRUPTIONS_HOST

RUN echo ${GOOGLE_API_KEY}
RUN echo ${DISRUPTIONS_HOST}

ENV GOOGLE_API_KEY=${GOOGLE_API_KEY}
ENV DISRUPTIONS_HOST=${DISRUPTIONS_HOST}

RUN npm run build

Expand Down

0 comments on commit b69e7b6

Please sign in to comment.