-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
30 lines (20 loc) · 873 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM tiangolo/uvicorn-gunicorn:python3.10-slim
LABEL maintainer="[email protected]"
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
# Create the error.log, otherwise we get a permission error when we try to write to it
RUN touch /app/error.log
RUN chmod 777 /app/error.log
RUN useradd amarillo
USER amarillo
# 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