Skip to content

Commit

Permalink
Don't do an apt update
Browse files Browse the repository at this point in the history
We're using the base image which has already done that. Also don't delete
the apt cache since an automatic apt clear happens as well
  • Loading branch information
rolandgeider committed Jul 11, 2023
1 parent 2f8249e commit e845b31
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 2 additions & 4 deletions extras/docker/demo/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,12 @@ EXPOSE 80


# Install dependencies
RUN apt-get update \
&& apt-get install --no-install-recommends -y \
RUN apt-get install --no-install-recommends -y \
apache2 \
cron \
python3-venv \
libapache2-mod-wsgi-py3 \
python3-wheel \
&& rm -rf /var/lib/apt/lists/*
python3-wheel

# Configure apache
COPY ${DOCKER_DIR}/wger.conf /etc/apache2/sites-available/
Expand Down
3 changes: 1 addition & 2 deletions extras/docker/development/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
FROM wger/base:latest as builder
ARG DEBIAN_FRONTEND=noninteractive

RUN apt-get update \
&& apt-get install --no-install-recommends -y \
RUN apt-get install --no-install-recommends -y \
build-essential \
python3-dev \
python3-wheel \
Expand Down

0 comments on commit e845b31

Please sign in to comment.