Skip to content

Commit

Permalink
feat: adds dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
anonymous-org-za committed Jul 8, 2024
1 parent aab6710 commit 16fa1f2
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM python:3.8-alpine

WORKDIR /app
COPY requirements.txt .

RUN pip install --no-cache-dir -r requirements.txt

COPY . .

EXPOSE 8000
ENV TORBOX_API_KEY
ENV AUTH_USERNAME=admin
ENV AUTH_PASSWORD=adminadmin
ENV PORT=8000
ENV SWITCH_UID

CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000", "--forwarded-allow-ips='*'", "--proxy-headers"]

0 comments on commit 16fa1f2

Please sign in to comment.