From 6dba68f7d84144877c669141ba18c04d570e7a55 Mon Sep 17 00:00:00 2001 From: Francia Csaba Date: Fri, 17 May 2024 14:13:53 +0200 Subject: [PATCH] Added Dockerfile --- Dockerfile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..65e13ae --- /dev/null +++ b/Dockerfile @@ -0,0 +1,23 @@ +FROM tiangolo/uvicorn-gunicorn:python3.10-slim + +LABEL maintainer="info@mfdz.de" + +WORKDIR /app + +EXPOSE 80 + +COPY requirements.txt /app/requirements.txt +RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt + +COPY ./amarillo-enhancer /app/amarillo-enhancer +# COPY ./config /app/config +COPY ./logging.conf /app + +# ENV ADMIN_TOKEN="" +ENV MODULE_NAME=amarillo-enhancer.enhancer +ENV MAX_WORKERS=1 + +# This image inherits uvicorn-gunicorn's CMD. If you'd like to start uvicorn, use this instead +# CMD ["uvicorn", "amarillo.main:app", "--host", "0.0.0.0", "--port", "8000"] + +#docker run -it --rm --name amarillo-enhancer -p 8001:80 -e TZ=Europe/Berlin -v $(pwd)/data:/app/data amarillo-enhancer \ No newline at end of file