-
Notifications
You must be signed in to change notification settings - Fork 2
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 #124 from ropable/master
Update project to use Python 3.12, bump dependency versions
- Loading branch information
Showing
4 changed files
with
270 additions
and
260 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,6 +1,6 @@ | ||
# syntax=docker/dockerfile:1 | ||
# Prepare the base environment. | ||
FROM python:3.11.9-slim AS builder_base_caddy | ||
FROM python:3.12.4-slim AS builder_base_caddy | ||
LABEL [email protected] | ||
LABEL org.opencontainers.image.source=https://github.com/dbca-wa/caddy | ||
|
||
|
@@ -14,16 +14,16 @@ RUN apt-get update -y \ | |
FROM builder_base_caddy AS python_libs_caddy | ||
WORKDIR /app | ||
ARG POETRY_VERSION=1.8.3 | ||
RUN pip install --root-user-action=ignore poetry=="${POETRY_VERSION}" | ||
RUN pip install --no-cache-dir --root-user-action=ignore poetry==${POETRY_VERSION} | ||
COPY poetry.lock pyproject.toml ./ | ||
RUN poetry config virtualenvs.create false \ | ||
&& poetry install --no-interaction --no-ansi --only main | ||
|
||
# Create a non-root user. | ||
ARG UID=10001 | ||
ARG GID=10001 | ||
RUN groupadd -g "${GID}" appuser \ | ||
&& useradd --no-create-home --no-log-init --uid "${UID}" --gid "${GID}" appuser | ||
RUN groupadd -g ${GID} appuser \ | ||
&& useradd --no-create-home --no-log-init --uid ${UID} --gid ${GID} appuser | ||
|
||
# Install the project. | ||
COPY geocoder.py gunicorn.py manage.py ./ | ||
|
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 |
---|---|---|
|
@@ -21,4 +21,4 @@ patches: | |
- path: service_patch.yaml | ||
images: | ||
- name: ghcr.io/dbca-wa/caddy | ||
newTag: 2.3.8 | ||
newTag: 2.3.9 |
Oops, something went wrong.