Skip to content

Commit 16fa1f2

Browse files
feat: adds dockerfile
1 parent aab6710 commit 16fa1f2

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

dockerfile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
FROM python:3.8-alpine
2+
3+
WORKDIR /app
4+
COPY requirements.txt .
5+
6+
RUN pip install --no-cache-dir -r requirements.txt
7+
8+
COPY . .
9+
10+
EXPOSE 8000
11+
ENV TORBOX_API_KEY
12+
ENV AUTH_USERNAME=admin
13+
ENV AUTH_PASSWORD=adminadmin
14+
ENV PORT=8000
15+
ENV SWITCH_UID
16+
17+
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000", "--forwarded-allow-ips='*'", "--proxy-headers"]

0 commit comments

Comments
 (0)