-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (28 loc) · 808 Bytes
/
Dockerfile
File metadata and controls
36 lines (28 loc) · 808 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
28
29
30
31
32
33
34
35
36
FROM ubuntu:24.04
# https://stackoverflow.com/a/35976127
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get -y install apt-utils dialog && \
echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
RUN apt-get install -y \
apt-transport-https \
apt-utils \
build-essential \
chromium-chromedriver \
curl \
libgtk-4-dev \
nmap \
p0f \
software-properties-common \
tcpdump
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /usr/local/bin/
WORKDIR /build
# Install Python dependencies first for layer caching.
COPY pyproject.toml uv.lock ./
RUN uv sync
RUN uv run playwright install-deps
# Copy application code last (changes most often).
COPY app/ app/
COPY tests/ tests/
EXPOSE 5000
CMD ["uv", "run", "app/main.py"]