-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
29 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
FROM python:3.12-slim | ||
|
||
# Add directories | ||
RUN mkdir -p /srv/semkov/src/ && \ | ||
mkdir -p /var/lib/semkov/static/ && \ | ||
mkdir -p /var/lib/semkov/media/ && \ | ||
mkdir -p /var/lib/semkov/data/ && \ | ||
mkdir -p /var/log/semkov/ | ||
RUN mkdir -p /srv/app/src/ && \ | ||
mkdir -p /var/lib/app/static/ && \ | ||
mkdir -p /var/lib/app/media/ && \ | ||
mkdir -p /var/lib/app/data/ && \ | ||
mkdir -p /var/log/app/ | ||
|
||
# Install any needed packages specified in requirements | ||
COPY requirements.txt /tmp/requirements.txt | ||
RUN pip install --trusted-host pypi.org --no-cache-dir -r /tmp/requirements.txt | ||
|
||
# Add manti system user | ||
RUN useradd -m -s /bin/bash -d /home/manti manti && \ | ||
chown -R manti:manti /srv/semkov/src/ /var/lib/semkov/ /var/log/semkov/ | ||
chown -R manti:manti /srv/app/src/ /var/lib/app/ /var/log/app/ | ||
|
||
# Select user, set working directory and run server | ||
USER manti | ||
WORKDIR /srv/semkov/src/ | ||
CMD python manage.py runserver | ||
WORKDIR /srv/app/src/ | ||
CMD ["python", "manage.py", "runserver"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
wagtail==6.0.2 | ||
pillow==10.3.0 | ||
gunicorn==21.2.0 | ||
wagtail==6.1.3 | ||
pillow==10.4.0 | ||
gunicorn==22.0.0 | ||
psycopg2_binary==2.9.9 | ||
requests==2.31.0 | ||
requests==2.32.3 | ||
|
||
pytest>=8.1.1 | ||
pytest>=8.3.1 | ||
pytest-django>=4.8.0 | ||
|
||
ipython>=8.23.0 | ||
pre_commit>=3.7.0 | ||
pip-check-updates>=0.26.1 | ||
ipython>=8.26.0 | ||
pre_commit>=3.7.1 | ||
pip-check-updates>=0.27.0 | ||
|
||
isort>=5.13.2 | ||
bandit>=1.7.8 | ||
black>=24.3.0 | ||
bandit>=1.7.9 | ||
black>=24.4.2 | ||
prospector>=1.10.3 | ||
pyupgrade>=3.15.2 | ||
pyupgrade>=3.16.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters