initial
This commit is contained in:
18
Dockerfile.frontend
Normal file
18
Dockerfile.frontend
Normal file
@@ -0,0 +1,18 @@
|
||||
FROM node:20-slim
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Copy package files from nested directory
|
||||
COPY frontend/frontend/package*.json ./
|
||||
|
||||
# Install dependencies
|
||||
RUN npm install
|
||||
|
||||
# Copy application code
|
||||
COPY frontend/frontend ./
|
||||
|
||||
# Expose Vite dev server port
|
||||
EXPOSE 3000
|
||||
|
||||
# Run dev server with host 0.0.0.0 to allow access from outside container
|
||||
CMD ["npm", "run", "dev", "--", "--host", "0.0.0.0"]
|
||||
Reference in New Issue
Block a user