summaryrefslogtreecommitdiffstats
path: root/Dockerfile
blob: 66b4b70e5d9fc5002e562f4640c688c2490de5d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM python:3.10-alpine AS base

RUN mkdir -p /app
WORKDIR /app

FROM base AS build

RUN mkdir /buildroot
RUN apk add gcc make musl-dev
RUN pip install --upgrade pip

COPY requirements.txt .
RUN pip install -r requirements.txt --root /buildroot

FROM base

COPY --from=build /buildroot /
COPY . .

ENV TUNNEL_DOMAIN=
ENV SECURE True
EXPOSE 8000

CMD ["uvicorn", "ttun_server:server", "--host", "0.0.0.0", "--port", "8000"]