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

include TRANSLATIONS_DIR as environment variable in the Docker image

parent 08e9f966
No related branches found
No related tags found
1 merge request!90include TRANSLATIONS_DIR as environment variable in the Docker image
......@@ -18,6 +18,8 @@ EXPOSE 8080
# The app reads the configuration from this location.
# No need to set environment variables in your docker-compose.
ENV OSS_PARAMS_FILENAME=/etc/gso/config.json
# Set the environment variable for the translations directory
ENV TRANSLATIONS_DIR=$(python3 -c "from os import path; import gso; print(path.join(path.split(gso.__file__)[0], 'translations'))" | tail -n 1)
# Start the FastAPI application
CMD ["uvicorn", "gso.main:app", "--host", "0.0.0.0", "--port", "8080"]
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