Skip to content

Commit

Permalink
Merge pull request #124 from ropable/master
Browse files Browse the repository at this point in the history
Update project to use Python 3.12, bump dependency versions
  • Loading branch information
ropable authored Sep 10, 2024
2 parents 58e9803 + 2e6b3b4 commit 5442cb3
Show file tree
Hide file tree
Showing 4 changed files with 270 additions and 260 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
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

Expand All @@ -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 ./
Expand Down
2 changes: 1 addition & 1 deletion kustomize/overlays/prod/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ patches:
- path: service_patch.yaml
images:
- name: ghcr.io/dbca-wa/caddy
newTag: 2.3.8
newTag: 2.3.9
Loading

0 comments on commit 5442cb3

Please sign in to comment.