Skip to content

Commit 45f3783

Browse files
authored
Merge pull request #117 from crabsatellite/fix/dockerfile-best-practices
Fix Dockerfile best-practice violations in misago/Dockerfile
2 parents 87a7c6c + e5e34f9 commit 45f3783

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

misago/Dockerfile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,15 @@ RUN apt-get update && \
1717
cron \
1818
postgresql-client-15 \
1919
gettext && \
20-
apt-get clean
20+
apt-get clean \
21+
&& rm -rf /var/lib/apt/lists/*
2122

2223
# Make current directory available as "Misago" within docker
23-
ADD . /misago
24+
COPY . /misago
2425
WORKDIR /misago
2526

2627
# Install requirements files
27-
RUN pip install --upgrade pip && \
28+
RUN pip install --no-cache-dir --upgrade pip && \
2829
pip install -r requirements.txt
2930

3031
# Bootstrap plugins
@@ -33,5 +34,5 @@ RUN ./.run bootstrap_plugins
3334
# Expose port 3031 from Docker
3435
EXPOSE 3031
3536

36-
# Call entrypoint script to setup
37-
CMD ["uwsgi", "--ini", "uwsgi.ini"]
37+
# Call entrypoint script to setup
38+
CMD ["uwsgi", "--ini", "uwsgi.ini"]

0 commit comments

Comments
 (0)