Skip to content

Commit 1835bd8

Browse files
Merge pull request #228 from samyak003/fix/fix-dockerfile
Updated dockerfile
2 parents 538976c + e9cf8c0 commit 1835bd8

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Dockerfile

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
FROM python:3.11.0b1-buster
22

3+
34
# set work directory
45
WORKDIR /app
56

67

78
# dependencies for psycopg2
8-
RUN apt-get update && apt-get install --no-install-recommends -y dnsutils=1:9.11.5.P4+dfsg-5.1+deb10u7 libpq-dev=11.16-0+deb10u1 python3-dev=3.7.3-1 \
9-
&& apt-get clean \
10-
&& rm -rf /var/lib/apt/lists/*
9+
RUN apt-get update && apt-get install --no-install-recommends -y dnsutils=1:9.11.5.P4+dfsg-5.1+deb10u11 libpq-dev=11.16-0+deb10u1 python3-dev=3.7.3-1 && apt-get clean && rm -rf /var/lib/apt/lists/*
1110

1211

1312
# Set environment variables
14-
ENV PYTHONDONTWRITEBYTECODE 1
15-
ENV PYTHONUNBUFFERED 1
13+
ENV PYTHONDONTWRITEBYTECODE=1
14+
ENV PYTHONUNBUFFERED=1
1615

1716

1817
# Install dependencies
@@ -30,5 +29,5 @@ EXPOSE 8000
3029

3130

3231
RUN python3 /app/manage.py migrate
33-
WORKDIR /app/pygoat/
32+
WORKDIR /app
3433
CMD ["gunicorn", "--bind", "0.0.0.0:8000", "--workers","6", "pygoat.wsgi"]

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Django==4.1.7
1212
django-allauth==0.52.0
1313
django-crispy-forms==2.0
1414
django-heroku==0.3.1
15+
gunicorn==23.0.0
1516
idna==3.4
1617
mccabe==0.6.1
1718
oauthlib==3.2.2

0 commit comments

Comments
 (0)