diff --git a/Dockerfile b/Dockerfile index f00ef9e..699d7fa 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,19 @@ -FROM node:lts-alpine as builder +FROM node:16 +# Set the working directory in the container WORKDIR /app -COPY . ./ -RUN npm install && vite build -FROM nginx:alpine +# Copy package.json and package-lock.json to the working directory +COPY package*.json ./ -COPY --from=builder /app/dist /usr/share/nginx/html \ No newline at end of file +# Install app dependencies +RUN npm install + +# Copy the rest of your application code to the working directory +COPY . . + +# Expose a port to communicate with the React app +EXPOSE 5173 + +# Start your React app +CMD ["npm", "run", "dev"] \ No newline at end of file