Skip to content

Commit 70c0431

Browse files
committed
TN-12: Improved Dockerfile
1 parent 03270ec commit 70c0431

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

.dockerignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ __pycache__/
1111
/.gitignore
1212
/docker-compose.yml
1313
/Dockerfile
14-
/Pipfile
14+
/Pipfile.lock
1515
/Procfile
1616
/Makefile

Dockerfile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,8 @@ ENV DEBUG False
55

66
WORKDIR /app/
77

8-
COPY Pipfile.lock /app/Pipfile.lock
9-
RUN pip install --upgrade pipenv \
10-
&& pipenv install --ignore-pipfile \
11-
&& pipenv install gunicorn
8+
COPY Pipfile /app/Pipfile
9+
RUN pip install --upgrade pipenv && pipenv install
1210

1311
COPY . /app/
1412
RUN pipenv run ./manage.py collectstatic

0 commit comments

Comments
 (0)