Skip to content
Snippets Groups Projects
Verified Commit c530567b authored by Karel van Klink's avatar Karel van Klink :smiley_cat:
Browse files

require OSS_PARAMS_FILENAME from now on as an environment variable, doesn't...

require OSS_PARAMS_FILENAME from now on as an environment variable, doesn't really matter anymore where it gets mounted
parent b0e13329
No related branches found
No related tags found
1 merge request!90include TRANSLATIONS_DIR as environment variable in the Docker image
Pipeline #84415 passed
......@@ -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"]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment