Skip to content

Commit

Permalink
Update Dockerfile Poetry version.
Browse files Browse the repository at this point in the history
  • Loading branch information
ropable committed Dec 7, 2023
1 parent 991b38d commit 2a47f68
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ FROM python:3.10.13-slim as builder_base_mapproxy
MAINTAINER [email protected]
LABEL org.opencontainers.image.source https://github.com/dbca-wa/mapproxy

ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Australia/Perth
RUN apt-get update -y \
&& apt-get upgrade -y \
&& apt-get install --no-install-recommends -y libgeos-dev libgdal-dev \
Expand All @@ -15,11 +13,11 @@ RUN apt-get update -y \
# Install Python libs using Poetry.
FROM builder_base_mapproxy as python_libs_mapproxy
WORKDIR /app
ENV POETRY_VERSION=1.5.1
RUN pip install --upgrade pip && pip install "poetry==$POETRY_VERSION"
COPY poetry.lock pyproject.toml /app/
ARG POETRY_VERSION=1.6.1
RUN pip install poetry=="${POETRY_VERSION}"
COPY poetry.lock pyproject.toml ./
RUN poetry config virtualenvs.create false \
&& poetry install --no-interaction --no-ansi --without dev
&& poetry install --no-interaction --no-ansi --only main

# Create a non-root user.
ARG UID=10001
Expand Down

0 comments on commit 2a47f68

Please sign in to comment.