-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Dockerfile base version, Poetry.
- Loading branch information
Showing
1 changed file
with
4 additions
and
4 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.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 | ||
|
||
|
@@ -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 | ||
|
@@ -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 | ||
|