mirror of
https://github.com/wukko/cobalt.git
synced 2024-11-15 04:39:58 +00:00
build: clean up dockerfile and use clean-install
This commit is contained in:
parent
701182d753
commit
3197cee473
1 changed files with 4 additions and 3 deletions
|
@ -3,9 +3,10 @@ WORKDIR /app
|
||||||
|
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
|
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get install -y git python3 build-essential && \
|
apt-get install -y git python3 build-essential && \
|
||||||
npm install && \
|
npm ci && \
|
||||||
|
npm cache clean --force && \
|
||||||
apt purge --autoremove -y python3 build-essential && \
|
apt purge --autoremove -y python3 build-essential && \
|
||||||
rm -rf ~/.cache/ /var/lib/apt/lists/*
|
rm -rf ~/.cache/ /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue