diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..315c1c3 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,21 @@ +FROM inca.rte-france.com/antares/python3.11-rte:1.1 + +# RUN apt update && apt install -y procps gdb + +# Add the `ls` alias to simplify debugging +RUN echo "alias ll='/bin/ls -l --color=auto'" >> /root/.bashrc + +COPY ./requirements.txt ./conf/* /conf/ + +RUN pip3 install --no-cache-dir --upgrade pip && pip3 install --no-cache-dir -r /conf/requirements.txt + +# Copy the application source code +COPY ./src/antares /code/antares + +ENV PYTHONPATH="/code" + +EXPOSE 8094 + +# Run the FastAPI application +CMD ["uvicorn", "antares.main:app", "--host", "0.0.0.0", "--port", "8094"] +