Skip to content

best way to save what you love

build: clean up dockerfile and use clean-install

dumbmoron3197cee473aa
diff --git a/Dockerfile b/Dockerfile
index c98785d9..0896c116 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -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/*