Skip to content
Snippets Groups Projects
Commit a590e445 authored by Neda Moeini's avatar Neda Moeini
Browse files

Updated Dockerfile.

parent a50796e0
No related branches found
No related tags found
No related merge requests found
Pipeline #83811 passed
......@@ -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"]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment