Add Dockerfile for frontend

master
John Montagu, the 4th Earl of Sandvich 2024-11-06 20:56:45 -08:00
parent 4d76cdce44
commit 2a41671d73
Signed by: sandvich
GPG Key ID: 9A39BE37E602B22D
1 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,18 @@
# Use the official Node.js runtime as a parent image
FROM node:18
# Set the working directory in the container
WORKDIR /app
# Install dependencies
COPY package*.json ./
RUN npm install
# Copy the entire app into the container
COPY . .
# Expose the Vite development server port
EXPOSE 5173
# Command to start the Vite development server
CMD ["npm", "run", "dev", "--", "--host"]