Skip to content

Commit

Permalink
ENV scoped per build-stage moby/moby#37345 (comment)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsueling committed Jan 15, 2022
1 parent 0e82f05 commit 65c27ed
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions todo-app/todo-frontend/Dockerfile
Expand Up @@ -8,8 +8,9 @@ RUN npm ci

RUN npm run build

ENV REACT_APP_BACKEND_URL=http://localhost:3000/

# ENV scoped per build-stage https://github.com/moby/moby/issues/37345#issuecomment-400245466
FROM nginx:1.20-alpine

COPY --from=build-stage /usr/src/app/build /usr/share/nginx/html
COPY --from=build-stage /usr/src/app/build /usr/share/nginx/html

ENV REACT_APP_BACKEND_URL=http://localhost:3000/

0 comments on commit 65c27ed

Please sign in to comment.