-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1437 from DDMAL/staging
Merge staging into production, 2 May 2024
- Loading branch information
Showing
52 changed files
with
2,784 additions
and
648 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 |
---|---|---|
|
@@ -45,4 +45,4 @@ server { | |
location = /504.html { | ||
root /; | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,22 @@ | ||
# start from an official image | ||
# Download and install python dependencies in a container | ||
FROM python:3.9 as dependency-install-container | ||
ARG PROJECT_ENVIRONMENT | ||
COPY ./poetry.lock ./pyproject.toml ./django/install-packages.sh /code/ | ||
WORKDIR /code | ||
RUN chmod u+x /code/install-packages.sh && \ | ||
/code/install-packages.sh $PROJECT_ENVIRONMENT | ||
|
||
# Copy our dependencies into the base image | ||
FROM python:3.9 | ||
COPY --from=dependency-install-container /code/.venv /code/.venv | ||
|
||
ENV PYTHONDONTWRITEBYTECODE 1 | ||
ENV PYTHONUNBUFFERED 1 | ||
|
||
EXPOSE 8000 | ||
|
||
WORKDIR /code/django/cantusdb_project | ||
|
||
COPY cantusdb_project/requirements.txt /code/django/cantusdb_project | ||
|
||
RUN pip3 install -r requirements.txt | ||
|
||
COPY cantusdb_project . | ||
WORKDIR /code/cantusdb_project | ||
|
||
# define the default command to run when starting the container | ||
CMD ["gunicorn", "--chdir", "cantusdb", "--bind", ":8000", "cantusdb.wsgi:application", "--workers", "5"] | ||
# Add our python environment binaries and package files to the path | ||
ENV PATH="$PATH:/code/.venv/bin/" \ | ||
PYTHONPATH="$PYTHONPATH:/code/.venv/lib/python3.9/site-packages/" |
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
Oops, something went wrong.