From 22b002c34804c8bc8a11f56aad90f3a234e558ad Mon Sep 17 00:00:00 2001 From: ZoutigeWolf Date: Wed, 18 Dec 2024 16:08:26 +0100 Subject: [PATCH] Add dockerfile --- AH-UN Schedule API/Dockerfile | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 AH-UN Schedule API/Dockerfile diff --git a/AH-UN Schedule API/Dockerfile b/AH-UN Schedule API/Dockerfile new file mode 100644 index 0000000..af6a615 --- /dev/null +++ b/AH-UN Schedule API/Dockerfile @@ -0,0 +1,12 @@ +FROM mambaorg/micromamba:0.27.0 + +COPY --chown=$MAMBA_USER:$MAMBA_USER environment.yaml /tmp/environment.yaml + +RUN micromamba install -y -n base -f /tmp/environment.yaml && \ + micromamba clean --all --yes + +WORKDIR /code + +COPY ./app /code/app + +CMD ["uvicorn", "app.main:app", "--proxy-headers", "--host", "0.0.0.0", "--port", "80", "--workers", "4"]