22
33# Define arguments in the global scope
44ARG PYTHON_VERSION="3.11.9"
5- ARG UV_VERSION="0.5 "
5+ ARG UV_VERSION="0.6 "
66
77FROM ghcr.io/astral-sh/uv:${UV_VERSION} AS uv_build
88# we docker image is built based on debian
@@ -11,7 +11,7 @@ FROM python:${PYTHON_VERSION}-slim-bookworm AS base
1111
1212#
1313# USAGE:
14- # cd sercices /notifications
14+ # cd services /notifications
1515# docker build -f Dockerfile -t notifications:prod --target production ../../
1616# docker run notifications:prod
1717#
@@ -27,7 +27,6 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=private \
2727 apt-get update && \
2828 apt-get install -y --no-install-recommends \
2929 gosu \
30- curl \
3130 && apt-get clean -y \
3231 # verify that the binary works
3332 && gosu nobody true
@@ -58,13 +57,6 @@ ENV PYTHONDONTWRITEBYTECODE=1 \
5857# those from our virtualenv.
5958ENV PATH="${VIRTUAL_ENV}/bin:$PATH"
6059
61- # rclone installation
62- ARG TARGETARCH
63- ENV TARGETARCH=${TARGETARCH}
64- RUN \
65- --mount=type=bind,source=scripts/install_rclone.bash,target=/tmp/install_rclone.bash \
66- ./tmp/install_rclone.bash
67-
6860# -------------------------- Build stage -------------------
6961# Installs build/package management tools and third party dependencies
7062#
@@ -106,7 +98,7 @@ WORKDIR /build
10698#
10799FROM build AS prod-only-deps
108100
109- ENV SC_BUILD_TARGET prod-only-deps
101+ ENV SC_BUILD_TARGET= prod-only-deps
110102
111103WORKDIR /build/services/notifications
112104
0 commit comments