forked from dbca-wa/ibms
-
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.
Merge pull request dbca-wa#102 from ropable/master
Application version update
- Loading branch information
Showing
23 changed files
with
2,207 additions
and
1,215 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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
[flake8] | ||
ignore = E501,E722 | ||
ignore = E265,E501,E722 |
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,5 +1,5 @@ | ||
# Prepare the base environment. | ||
FROM python:3.9.15-slim-buster as builder_base | ||
FROM python:3.10.12-slim-bookworm as builder_base_ibms | ||
MAINTAINER [email protected] | ||
LABEL org.opencontainers.image.source https://github.com/dbca-wa/ibms | ||
|
||
|
@@ -10,16 +10,16 @@ RUN apt-get update -y \ | |
&& pip install --upgrade pip | ||
|
||
# Install Python libs using Poetry. | ||
FROM builder_base as python_libs | ||
FROM builder_base_ibms as python_libs_ibms | ||
WORKDIR /app | ||
ENV POETRY_VERSION=1.2.2 | ||
ENV POETRY_VERSION=1.5.1 | ||
RUN pip install "poetry==$POETRY_VERSION" | ||
COPY poetry.lock pyproject.toml /app/ | ||
RUN poetry config virtualenvs.create false \ | ||
&& poetry install --no-interaction --no-ansi --only main | ||
|
||
# Install the project. | ||
FROM python_libs | ||
FROM python_libs_ibms | ||
COPY manage.py gunicorn.py ./ | ||
COPY ibms_project ./ibms_project | ||
RUN python manage.py collectstatic --noinput | ||
|
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
Oops, something went wrong.