Skip to content

Commit

Permalink
refactor: use ARG
Browse files Browse the repository at this point in the history
  • Loading branch information
pyphilia committed Nov 23, 2023
1 parent c9bafb6 commit e97d30b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ FROM node:18-alpine
# install git, necessary for github dependencies
RUN apk add --no-cache git

ARG NEXT_PUBLIC_API_HOST=${NEXT_PUBLIC_API_HOST}

WORKDIR /usr/src/app
RUN mkdir -p .

Expand All @@ -11,7 +13,6 @@ COPY package.json .
COPY .yarnrc.yml .
COPY .yarn .yarn

ARG NEXT_PUBLIC_API_HOST=${NEXT_PUBLIC_API_HOST}

RUN yarn install

Expand Down

0 comments on commit e97d30b

Please sign in to comment.