Files
market_page/frontend/Dockerfile
2026-02-02 19:10:34 +08:00

19 lines
332 B
Docker

# Use an official Node runtime as a parent image
FROM node:18-alpine
# Set working directory
WORKDIR /app
# Install dependencies
COPY package.json package-lock.json* ./
RUN npm install
# Copy project files
COPY . .
# Expose the port the app runs on
EXPOSE 5173
# Start the application
CMD ["npm", "run", "dev", "--", "--host"]