Skip to content

Commit

Permalink
Update Dockerfile base version, Poetry.
Browse files Browse the repository at this point in the history
  • Loading branch information
ropable committed Dec 10, 2024
1 parent a024362 commit f61a6a4
Showing 1 changed file with 4 additions and 4 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.10-slim AS builder_base_csw
FROM python:3.11.11-slim AS builder_base_csw
LABEL [email protected]
LABEL org.opencontainers.image.source=https://github.com/dbca-wa/csw

Expand All @@ -13,8 +13,8 @@ RUN apt-get update -y \
# Install Python libs using Poetry.
FROM builder_base_csw AS python_libs_csw
WORKDIR /app
ARG POETRY_VERSION=1.8.3
RUN pip install --root-user-action=ignore poetry=="${POETRY_VERSION}"
ARG POETRY_VERSION=1.8.5
RUN pip install --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
Expand All @@ -23,7 +23,7 @@ RUN poetry config virtualenvs.create false \
ARG UID=10001
ARG GID=10001
RUN groupadd -g "${GID}" appuser \
&& useradd --no-create-home --no-log-init --uid "${UID}" --gid "${GID}" appuser
&& useradd --no-create-home --no-log-init --uid ${UID} --gid ${GID} appuser

# Install the project.
FROM python_libs_csw
Expand Down

0 comments on commit f61a6a4

Please sign in to comment.