Skip to content

Commit

Permalink
More layers for dockerfile for better caching, cleanup files in docke…
Browse files Browse the repository at this point in the history
…rignore
  • Loading branch information
nothingface0 committed Jun 5, 2024
1 parent 446dea3 commit 8a9206b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
9 changes: 9 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
**/*.log
**/*.db
**/*.pdf
.env*
.venv
.git
.pytest_cache
.vscode
tmp
__pycache__
tests
docs
log
other
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@ ENV TZ="Europe/Zurich"
RUN apt update \
&& apt upgrade -y \
&& apt-get update --fix-missing \
&& apt install -y python3-psycopg2 python3-pip \
&& python3 -m pip install -r requirements.txt \
&& useradd dqm \
&& apt install -y python3-psycopg2 python3-pip

RUN python3 -m pip install -r requirements.txt

RUN useradd dqm \
&& mkdir -p /dqmsquare_mirror/log \
&& mkdir -p /home/dqm/ \
&& chown -R dqm /home/dqm/ \
Expand Down

0 comments on commit 8a9206b

Please sign in to comment.