2
0
mirror of https://github.com/frappe/frappe_docker.git synced 2024-11-09 23:00:56 +00:00

Merge pull request #509 from PeterDaveHello/clean-up-apt-cache-in-dockerfile

Make sure apt lists cleaned up in Dockerfile
This commit is contained in:
Revant Nandgaonkar 2021-08-11 06:32:27 +05:30 committed by GitHub
commit 9d3e66528d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -52,6 +52,7 @@ COPY build/common/nginx-default.conf.template /etc/nginx/conf.d/default.conf.tem
COPY build/frappe-nginx/docker-entrypoint.sh /
RUN apt-get update && apt-get install -y rsync && apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& echo "#!/bin/bash" > /rsync \
&& chmod +x /rsync

View File

@ -46,7 +46,8 @@ RUN apt-get update -y && apt-get install \
&& wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.buster_${ARCH}.deb \
&& dpkg -i wkhtmltox_0.12.6-1.buster_${ARCH}.deb && rm wkhtmltox_0.12.6-1.buster_${ARCH}.deb \
&& wget https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh \
&& chown -R frappe:frappe /home/frappe
&& chown -R frappe:frappe /home/frappe \
&& rm -rf /var/lib/apt/lists/*
# Setup docker-entrypoint
COPY build/common/worker/docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh