From 412f09f942c50812a87355c935ef139998c44e10 Mon Sep 17 00:00:00 2001 From: Ethan Paul Date: Wed, 28 Feb 2024 13:33:28 -0500 Subject: [PATCH] Add volume definition for semaphore state Remove unused config file env var --- Dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8ebb517..1d4a022 100644 --- a/Dockerfile +++ b/Dockerfile @@ -28,8 +28,6 @@ FROM python:3.11-slim ARG OPENTOFU_VERSION ARG SEMAPHORE_VERSION -ENV SEMAPHORE_RUNNER_CONFIG_FILE /semaphore/config.json - COPY --from=build /build/wheels /tmp/wheels RUN apt-get update --yes && \ @@ -52,10 +50,11 @@ RUN apt-get update --yes && \ --no-cache-dir \ --find-links /tmp/wheels \ --disable-pip-version-check && \ - rm -rf /tmp/wheels && \ - mkdir --parents /semaphore + rm -rf /tmp/wheels ADD entrypoint.sh /entrypoint.sh ADD configure.py /configure.py +VOLUME /semaphore + ENTRYPOINT ["/entrypoint.sh"]