From c530567b6f62b5a5dbfec3f919f7d1578b311b90 Mon Sep 17 00:00:00 2001 From: Karel van Klink <karel.vanklink@geant.org> Date: Fri, 3 Nov 2023 15:39:09 +0100 Subject: [PATCH] require OSS_PARAMS_FILENAME from now on as an environment variable, doesn't really matter anymore where it gets mounted --- Dockerfile | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0c1fac67..76c3cf21 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,18 +12,12 @@ RUN pip install \ --target /app \ geant-service-orchestrator==${ARTIFACT_VERSION} -# Copy an example config into the container -# NOTE: a real config must be mounted at /app/config.json when running the container -COPY --chown=appuser:appgroup gso/oss-params-example.json /app/config.json - -# The app reads the configuration from this location. -# No need to set environment variables in your docker-compose. -ENV OSS_PARAMS_FILENAME=/app/config.json # Set the environment variable for the translations directory ENV TRANSLATIONS_DIR=/app/gso/translations/ -COPY --chown=appuser:appgroup --chmod=755 entrypoint.sh /app/entrypoint.sh +COPY --chmod=755 entrypoint.sh /app/entrypoint.sh +RUN chown -R appuser:appgroup /app USER appuser EXPOSE 8080 ENTRYPOINT ["/app/entrypoint.sh"] -- GitLab