Skip to content

Commit

Permalink
add env to dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
romanbutora committed Jul 26, 2023
1 parent bab052d commit ea5a07f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@ FROM node:18 AS base
WORKDIR /usr/src/app
COPY package.json yarn.lock ./

ARG REACT_APP_API_BASE
ARG PORT
ARG REACT_APP_API_GET_TEXT

ENV REACT_APP_API_BASE=$REACT_APP_API_BASE
ENV PORT=$PORT
ENV REACT_APP_API_GET_TEXT=$REACT_APP_API_GET_TEXT

# ---- Dependencies ----
FROM base AS dependencies
RUN yarn install
Expand Down

0 comments on commit ea5a07f

Please sign in to comment.