-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (20 loc) · 713 Bytes
/
Dockerfile
File metadata and controls
27 lines (20 loc) · 713 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM python:3.9.23-slim AS base
FROM base AS builder
WORKDIR /builddir
COPY requirements.txt .
# We're not going to run anything in the build container, so we'll suppress the script location warnings.
RUN pip install --user --no-warn-script-location -r requirements.txt
ENV PATH=/root/.local/bin:$PATH
COPY typecheck .
COPY src src
RUN ./typecheck
FROM base
WORKDIR /app
COPY --from=builder /root/.local/lib /root/.local/lib
COPY --from=builder /root/.local/bin/mitmdump /root/.local/bin/mitmdump
COPY --from=builder /builddir/src src
ENV PATH=/root/.local/bin:$PATH
COPY default-rules default-rules
COPY default-userscripts default-userscripts
EXPOSE 8080
ENTRYPOINT [ "python", "-u", "src/launcher.py" ]