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
18 changes: 18 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM node:20-alpine

WORKDIR /app

# Copy yarn.lock and package.json to cache package installs
COPY web/package.json web/yarn.lock ./web/

# Install dependencies inside the container
RUN cd web && yarn install --frozen-lockfile

# Copy the rest of the application files
COPY . .

# Expose Vite's default dev server port
EXPOSE 5173

# Start the dev server listening on all host interfaces
CMD ["yarn", "--cwd", "web", "dev", "--host"]
13 changes: 13 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
services:
web:
build:
context: .
dockerfile: Dockerfile
container_name: personal-security-checklist-web
ports:
- "5173:5173"
volumes:
- .:/app
- /app/web/node_modules
environment:
- NODE_ENV=development