Skip to content

Commit

Permalink
more changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiollende committed Apr 28, 2024
1 parent 53abbe3 commit 4c6d7a0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
7 changes: 6 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,12 @@ services:
container_name: webapp-${teamname:-defaultASW}
image: ghcr.io/arquisoft/wiq_en3a/webapp:latest
profiles: ["dev", "prod"]
build: ./webapp
build:
args:
REACT_APP_API_ENDPOINT: ${API_URI}
context: ./webapp
environment:
- REACT_APP_API_ENDPOINT=${API_URI}
depends_on:
- gatewayservice
ports:
Expand Down
1 change: 0 additions & 1 deletion webapp/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ RUN npm install

ARG API_URI="http://localhost:8000"
ENV REACT_APP_API_ENDPOINT=$API_URI
ENV PORT=3000

#Create an optimized version of the webapp
RUN npm run build
Expand Down
6 changes: 3 additions & 3 deletions webapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@
"zustand": "^4.5.2"
},
"scripts": {
"start": "set PORT=3000 && set HTTP=true && react-scripts start",
"build": "set PORT=3000 && set HTTP=true && react-scripts build",
"prod": "serve -s build -l 3000",
"start": "set HTTP=true && react-scripts start",
"build": "set HTTP=true && react-scripts build",
"prod": "serve -s build",
"test": "react-scripts test --transformIgnorePatterns 'node_modules/(?!axios)/'",
"test:e2e": "cross-env START_SERVER_AND_TEST_INSECURE=1 PORT=3000 npm run rune2etests",
"rune2etests": "start-server-and-test 'node e2e/test-environment-setup.js' http://localhost:8000/health prod 3000 \"cd e2e && jest\"",
Expand Down

0 comments on commit 4c6d7a0

Please sign in to comment.