diff --git a/Dockerfile b/Dockerfile index 0c1fac676362dcd7214a403cde748aae87a82404..76c3cf21d2843e27c15321c66f0c1711a258f49b 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"]