20 lines
463 B
Docker
20 lines
463 B
Docker
# ./frontend/Dockerfile
|
|
|
|
# Use an official Node runtime as a parent image
|
|
FROM node:20-alpine
|
|
|
|
# Set work directory
|
|
WORKDIR /app
|
|
|
|
# Copy package.json and package-lock.json (or yarn.lock)
|
|
COPY package*.json ./
|
|
|
|
# Install dependencies
|
|
RUN npm install
|
|
|
|
# Copy the rest of the frontend source code
|
|
COPY . .
|
|
|
|
# The command to run the dev server will be specified in docker-compose.dev.yml
|
|
# Expose the Vite default port (though mapping is done in compose)
|
|
EXPOSE 5173
|