🏗️ Modified the Dockerfile

This commit is contained in:
2024-05-11 15:01:26 -04:00
parent df835cad7e
commit 80746b0b0c
3 changed files with 14 additions and 11 deletions

View File

@@ -3,17 +3,20 @@ LABEL maintainer="Rishi Ghan <rishi.ghan@gmail.com>"
WORKDIR /threetwo
# Copy package.json and lock file first to leverage Docker cache
COPY package.json ./
COPY yarn.lock ./
COPY nodemon.json ./
COPY jsdoc.json ./
# RUN apt-get update && apt-get install -y git python3 build-essential autoconf automake g++ libpng-dev make
RUN apk --no-cache add g++ make libpng-dev git python3 libc6-compat autoconf automake libjpeg-turbo-dev libpng-dev mesa-dev mesa libxi build-base gcc libtool nasm
RUN yarn --ignore-engines
# Install build dependencies necessary for native modules
RUN apk --no-cache add g++ make libpng-dev git python3 autoconf automake libjpeg-turbo-dev mesa-dev mesa libxi build-base gcc libtool nasm
# Install node modules
RUN yarn install --ignore-engines
# Copy the rest of the application
COPY . .
EXPOSE 5173
ENTRYPOINT [ "npm", "start" ]
# Use yarn start if you want to stick with yarn, or change to npm start if you prefer npm
ENTRYPOINT [ "yarn", "start" ]