# Use Node.js as the base image
FROM node:23-alpine3.20

# Set the working directory inside the container
WORKDIR /app

# Copy package.json and package-lock.json
COPY package.json package-lock.json ./

RUN npm install

# Copy the rest of the frontend code
COPY . .

# Copy the .env file
COPY .env .env

# Expose the Vite development port
EXPOSE 5173

# Start Vite in development mode
CMD ["npm", "run", "dev", "--", "--host"]

