-
Notifications
You must be signed in to change notification settings - Fork 31
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
1 parent
02e26a4
commit 89daa76
Showing
11 changed files
with
80 additions
and
29 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
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
FROM python:3.12-alpine3.18 | ||
|
||
RUN apk update \ | ||
&& apk add --no-cache \ | ||
gcc \ | ||
g++ \ | ||
libffi-dev \ | ||
musl-dev \ | ||
postgresql-dev \ | ||
yarn \ | ||
&& python -m pip install --upgrade pip | ||
|
||
ENV TZ UTC | ||
|
||
WORKDIR /opt/shhh | ||
|
||
ENV GROUP=app USER=shhh UID=12345 GID=23456 | ||
|
||
RUN addgroup --gid "$GID" "$GROUP" \ | ||
&& adduser --uid "$UID" --disabled-password --gecos "" \ | ||
--ingroup "$GROUP" "$USER" | ||
|
||
USER "$USER" | ||
ENV PATH="/home/$USER/.local/bin:${PATH}" | ||
|
||
ENV CRYPTOGRAPHY_DONT_BUILD_RUST=1 | ||
|
||
COPY requirements.txt . | ||
RUN pip install --no-cache-dir --no-warn-script-location \ | ||
--user -r requirements.txt | ||
|
||
COPY --chown=$USER:$GROUP . . | ||
|
||
RUN yarn install --modules-folder=shhh/static/vendor | ||
|
||
CMD gunicorn -b :8081 -w 3 wsgi:app --preload |
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 +1 @@ | ||
python-3.10.13 | ||
python-3.12.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = "3.0.7" | ||
__version__ = "3.1.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
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