Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
services:
frontend:
env_file:
- ./frontend/.env
build:
context: ./frontend
dockerfile: DockerFile
args:
VITE_BACKEND_BASE_URL: ${VITE_BACKEND_BASE_URL}
ports:
- "3000:3000"
command: npm run build
develop:
watch:
- action: sync+restart
path: ./frontend
target: /app
networks:
- app-network
container_name: frontend

networks:
app-network:
driver: bridge
6 changes: 6 additions & 0 deletions frontend/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
node_modules
.git
.gitignore
.env
dist
*.log
18 changes: 18 additions & 0 deletions frontend/DockerFile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM node:22

WORKDIR /app

COPY package*.json ./

RUN npm install

COPY . .

ARG VITE_BACKEND_BASE_URL
ENV VITE_BACKEND_BASE_URL=$VITE_BACKEND_BASE_URL

RUN npm run build

EXPOSE 3000

CMD ["npm", "run", "build"]