Skip to content

Commit

Permalink
docker: add .dockerignore
Browse files Browse the repository at this point in the history
  • Loading branch information
timhawes committed Jan 13, 2024
1 parent 364c521 commit 4b2277f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
db.sqlite3
local_settings.py
settings_local.py

**/__pycache__/
**/*.py[cod]
**/*$py.class
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ COPY . ./

ENV DJANGO_SETTINGS_MODULE=hackdb.settings_docker

RUN rm -f db.sqlite3 local_settings.py settings_local.py \
&& useradd django \
RUN useradd django \
&& python manage.py check \
&& python manage.py makemigrations

Expand Down

0 comments on commit 4b2277f

Please sign in to comment.