Skip to content

Commit 07ad895

Browse files
Merge branch 'adeyosemanputra:master' into master
2 parents e810cb9 + 1835bd8 commit 07ad895

6 files changed

Lines changed: 14 additions & 831 deletions

File tree

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,11 @@ venv
77
*db.sqlite3*
88
app.log
99
bin
10+
11+
12+
# LOG files
13+
*.log
14+
15+
# vscode
16+
.vscode/
17+
File renamed without changes.

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"]

0 commit comments

Comments
 (0)