build: clean up dockerfile and use clean-install

This commit is contained in:
dumbmoron 2024-05-22 10:21:38 +00:00
parent 701182d753
commit 3197cee473
No known key found for this signature in database

View file

@ -3,9 +3,10 @@ WORKDIR /app
COPY package*.json ./
RUN apt-get update && \
apt-get install -y git python3 build-essential && \
npm install && \
RUN apt-get update && \
apt-get install -y git python3 build-essential && \
npm ci && \
npm cache clean --force && \
apt purge --autoremove -y python3 build-essential && \
rm -rf ~/.cache/ /var/lib/apt/lists/*