summaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile24
1 files changed, 24 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..66b4b70
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,24 @@
1FROM python:3.10-alpine AS base
2
3RUN mkdir -p /app
4WORKDIR /app
5
6FROM base AS build
7
8RUN mkdir /buildroot
9RUN apk add gcc make musl-dev
10RUN pip install --upgrade pip
11
12COPY requirements.txt .
13RUN pip install -r requirements.txt --root /buildroot
14
15FROM base
16
17COPY --from=build /buildroot /
18COPY . .
19
20ENV TUNNEL_DOMAIN=
21ENV SECURE True
22EXPOSE 8000
23
24CMD ["uvicorn", "ttun_server:server", "--host", "0.0.0.0", "--port", "8000"]