19 lines
244 B
Docker
19 lines
244 B
Docker
# Use Node.js LTS
|
|
FROM node:18
|
|
|
|
# Set the working directory
|
|
WORKDIR /app
|
|
|
|
# Install dependencies
|
|
COPY package*.json ./
|
|
RUN npm install
|
|
|
|
# Copy the code
|
|
COPY . .
|
|
|
|
# Expose the frontend port
|
|
EXPOSE 3000
|
|
|
|
# Start the app
|
|
CMD ["npm", "run", "dev"]
|