From a590e445a05397cb67f446614430342758f16755 Mon Sep 17 00:00:00 2001 From: Neda Moeini <neda.moeini@GA0479-NMOEINI.local> Date: Fri, 11 Aug 2023 13:08:41 +0200 Subject: [PATCH] Updated Dockerfile. --- Dockerfile | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 4891d938..1928aeed 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,4 +7,15 @@ RUN pip install \ --extra-index-url https://artifactory.software.geant.org/artifactory/api/pypi/geant-swd-pypi/simple \ geant-service-orchestrator==${ARTIFACT_VERSION} -CMD ["tail", "-f", "/dev/null"] +# Create the directory for the configuration and copy the example config into it +RUN mkdir -p /etc/gso +COPY gso/oss-params-example.json /etc/gso/config.json + +# Expose port 8000 for the FastAPI application +EXPOSE 8080 + +# Set the environment variable for the configuration file +ENV OSS_PARAMS_FILENAME=/etc/gso/config.json + +# Start the FastAPI application +CMD ["uvicorn", "gso.main:app", "--host", "0.0.0.0", "--port", "8080"] -- GitLab