1- # syntax=docker/dockerfile:1.5
1+ # syntax=docker/dockerfile:1.6
22
33# full semver just for python base image
4- ARG PYTHON_VERSION=3.11.4
4+ ARG PYTHON_VERSION=3.11.6
55
66FROM python:${PYTHON_VERSION}-slim-bullseye AS builder
77
88# avoid stuck build due to user prompt
99ARG DEBIAN_FRONTEND=noninteractive
1010
1111# install dependencies
12- RUN apt -qq update \
13- && apt -qq install \
12+ RUN apt-get -qq update \
13+ && apt-get -qq install \
1414 --no-install-recommends -y \
1515 curl \
1616 gcc \
@@ -24,7 +24,7 @@ ENV PIP_DEFAULT_TIMEOUT=100
2424
2525# poetry env vars
2626ENV POETRY_HOME="/opt/poetry"
27- ENV POETRY_VERSION=1.4.2
27+ ENV POETRY_VERSION=1.7.1
2828ENV POETRY_VIRTUALENVS_IN_PROJECT=true
2929ENV POETRY_NO_INTERACTION=1
3030
@@ -78,8 +78,8 @@ RUN groupadd ${USER_NAME} \
7878 && chown -R ${USER_NAME}:${USER_GROUP} /app/raw
7979
8080# install dependencies
81- RUN apt -qq update \
82- && apt -qq install \
81+ RUN apt-get -qq update \
82+ && apt-get -qq install \
8383 --no-install-recommends -y \
8484 curl \
8585 lsof \
@@ -90,7 +90,4 @@ COPY --from=builder --chown=${USER_NAME} "$VENV" "$VENV"
9090
9191USER ${USER_NAME}
9292
93- # ENTRYPOINT ["python", "main.py"]
94- # CMD ["gunicorn", "-c", "config/gunicorn.conf.py", "main:app"]
9593CMD ["/bin/sh", "startup.sh"]
96- # CMD ["/bin/sh"]
0 commit comments