screenshot-to-code/frontend/Dockerfile
Abi Raja 465dc64439
Merge pull request #317 from MarcusLeoTKM/nodeversion
Changed node version from 20.9 to 22
2024-06-05 15:47:44 -04:00

23 lines
496 B
Docker

FROM node:22-bullseye-slim
# Set the working directory in the container
WORKDIR /app
# Copy package.json and yarn.lock
COPY package.json yarn.lock /app/
# Set the environment variable to skip Puppeteer download
ENV PUPPETEER_SKIP_DOWNLOAD=true
# Install dependencies
RUN yarn install
# Copy the current directory contents into the container at /app
COPY ./ /app/
# Expose port 5173 to access the server
EXPOSE 5173
# Command to run the application
CMD ["yarn", "dev", "--host", "0.0.0.0"]