Add Dockerfile, also some bug fixes
This commit is contained in:
14
Dockerfile
Normal file
14
Dockerfile
Normal file
@@ -0,0 +1,14 @@
|
||||
FROM python:slim
|
||||
|
||||
RUN apt update && apt upgrade -y && \
|
||||
apt install -y tor && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN pip install uv
|
||||
|
||||
WORKDIR /app
|
||||
ADD ./ .
|
||||
|
||||
RUN uv sync
|
||||
|
||||
ENTRYPOINT [ "/app/.venv/bin/gunicorn" ]
|
||||
CMD [ "-w1", "-b0.0.0.0", "c2:app" ]
|
||||
Reference in New Issue
Block a user