Skip to content

Commit

Permalink
2024-frontend working
Browse files Browse the repository at this point in the history
  • Loading branch information
hfroot committed Oct 23, 2024
1 parent 0d4f665 commit 0f88acb
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
8 changes: 4 additions & 4 deletions 2024-frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ FROM ma-cantine-server

WORKDIR /app/2024-frontend

# only copy the dependencies file first to make sure the step is only
# ran if either of these files explicitly change.
# COPY package.json package-lock.json ./
USER root

# NB: this wont reinstall on build, must rebuild server image first
RUN npm install

CMD [ "npm", "run", "dev" ]
EXPOSE 5173

CMD [ "npm", "run", "dev" ]
3 changes: 3 additions & 0 deletions 2024-frontend/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,7 @@ export default defineConfig({
},
],
},
server: {
host: "0.0.0.0",
},
})
8 changes: 5 additions & 3 deletions compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ services:
condition: service_healthy
frontend:
build:
context: 'frontend'
context: frontend
image: ma-cantine-front
volumes:
- "./frontend/:/app"
Expand All @@ -31,9 +31,11 @@ services:
- 8080:8080
2024-frontend:
build:
context: ./
dockerfile: 2024-frontend/Dockerfile
context: 2024-frontend
image: ma-cantine-2024-front
volumes:
- "./2024-frontend:/app/2024-frontend"
- "/app/2024-frontend/node_modules"
ports:
- 5173:5173
env_file:
Expand Down

0 comments on commit 0f88acb

Please sign in to comment.