# Use the official Node.js 14 image as a base
FROM node:20.7.0

# Set the working directory in the container
WORKDIR /app/frontend

# Copy package.json and package-lock.json to the working directory
COPY package*.json ./

# Install frontend dependencies
RUN yarn install

# Copy the rest of your frontend application code to the working directory
COPY . .

# Expose the port your frontend app runs on
EXPOSE 3000

# Command to run your frontend app
CMD ["npm", "run", "dev"]
