Skip to content

Commit

Permalink
Merge pull request #112 from Arquisoft/fix/actions
Browse files Browse the repository at this point in the history
chore: .env file in webapp
  • Loading branch information
Toto-hitori authored Mar 11, 2024
2 parents 74d5dc4 + 7cc1579 commit a0df8d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ services:
container_name: webapp-${teamname:-defaultASW}
image: ghcr.io/arquisoft/wiq_en2b/webapp:latest
profiles: [ "dev", "prod" ]

build:
args:
REACT_APP_API_ENDPOINT: ${API_URI}
context: ./webapp
environment:
- REACT_APP_API_ENDPOINT=${API_URI}
Expand Down
2 changes: 2 additions & 0 deletions webapp/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ RUN npm install
#Create an optimized version of the webapp
RUN npm run build
RUN npm install serve
ARG REACT_APP_API_ENDPOINT
RUN echo "REACT_APP_API_ENDPOINT=$REACT_APP_API_ENDPOINT" > .env

#Execute npm run prod to run the server
CMD [ "npm", "run", "prod" ]
Expand Down

0 comments on commit a0df8d4

Please sign in to comment.