@@ -62,8 +62,6 @@ LABEL org.opencontainers.image.authors="Shahar Evron <
[email protected] >
6262ARG USER_NAME=giftless
6363# Writable path for local LFS storage
6464ARG STORAGE_DIR=/lfs-storage
65- # Set to true to add a runtime dockerhub deprecation warning
66- ARG IS_DOCKERHUB
6765# expose shared ARGs
6866ARG WORKDIR
6967ARG VENV
@@ -90,23 +88,13 @@ ENV VIRTUAL_ENV="$VENV" PATH="$VENV/bin:$PATH"
9088# Copy project source back into the same path referenced by the editable install
9189COPY --from=builder "$WORKDIR/giftless" "giftless"
9290
93- # Copy desired docker-entrypoint
94- RUN --mount=target=/build-ctx set -eux ;\
95- target_de=scripts/docker-entrypoint.sh ;\
96- mkdir -p "$(dirname " $target_de")" ;\
97- if [ "${IS_DOCKERHUB:-}" = true ]; then \
98- cp /build-ctx/scripts/docker-entrypoint-dockerhub.sh "$target_de" ;\
99- else \
100- cp /build-ctx/scripts/docker-entrypoint.sh "$target_de" ;\
101- fi
102-
10391# Set runtime properties
10492USER $USER_NAME
10593ENV GIFTLESS_TRANSFER_ADAPTERS_basic_options_storage_options_path="$STORAGE_DIR"
10694ENV UWSGI_MODULE="giftless.wsgi_entrypoint"
10795
108- ENTRYPOINT ["tini" , "--" , "scripts/docker-entrypoint.sh " ]
109- CMD ["uwsgi" , " -s" , "127.0.0.1:5000" , "-M" , "-T" , "--threads" , "2" , "-p" , "2" , \
96+ ENTRYPOINT ["tini" , "--" , "uwsgi " ]
97+ CMD ["-s" , "127.0.0.1:5000" , "-M" , "-T" , "--threads" , "2" , "-p" , "2" , \
11098 "--manage-script-name" , "--callable" , "app" ]
11199
112100# TODO remove this STOPSIGNAL override after uwsgi>=2.1
0 commit comments