diff --git a/.gitignore b/.gitignore index 9c594f2..1835017 100644 --- a/.gitignore +++ b/.gitignore @@ -167,3 +167,4 @@ config static/** templates/** conf/** +data diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..a21f57b --- /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-gtfs-generator /app/amarillo-gtfs-generator +COPY ./config /app/config +COPY ./logging.conf /app + +ENV ADMIN_TOKEN="" +ENV MODULE_NAME=amarillo-gtfs-generator.gtfs_generator +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-gtfs-generator -p 8002:80 -e TZ=Europe/Berlin -v $(pwd)/data:/app/data amarillo-gtfs-generator \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..f1d8759 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,3 @@ +watchdog +amarillo +amarillo-enhancer \ No newline at end of file