19 lines
378 B
Docker
19 lines
378 B
Docker
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"]
|