-
Notifications
You must be signed in to change notification settings - Fork 1
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
4 changed files
with
495 additions
and
508 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
FROM python:3.11 | ||
|
||
ENV PYTHONUNBUFFERED 1 | ||
ENV DJANGO_SETTINGS_MODULE tosti.settings.production | ||
ENV PATH /root/.poetry/bin:${PATH} | ||
|
||
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"] | ||
|
||
WORKDIR /tosti/src | ||
COPY resources/entrypoint.sh /usr/local/bin/entrypoint.sh | ||
COPY poetry.lock pyproject.toml /tosti/src/ | ||
|
||
RUN apt-get update && \ | ||
DEBIAN_FRONTEND=noninteractive apt-get install --yes --quiet --no-install-recommends postgresql-client && \ | ||
rm --recursive --force /var/lib/apt/lists/* && \ | ||
\ | ||
mkdir --parents /tosti/src/ && \ | ||
mkdir --parents /tosti/log/ && \ | ||
mkdir --parents /tosti/static/ && \ | ||
mkdir --parents /tosti/media/ && \ | ||
mkdir --parents /tosti/cache/ && \ | ||
mkdir --parents /tosti/saml/ && \ | ||
chmod +x /usr/local/bin/entrypoint.sh && \ | ||
\ | ||
curl -sSL https://install.python-poetry.org | python3 - && \ | ||
export PATH="/root/.local/bin:$PATH" && \ | ||
poetry config --no-interaction --no-ansi virtualenvs.create false && \ | ||
poetry install --no-interaction --no-ansi --no-dev | ||
|
||
|
||
COPY website /tosti/src/website/ |
Oops, something went wrong.