mirror of
https://forge.fsky.io/oneflux/omegafox.git
synced 2026-02-10 06:22:03 -08:00
25 lines
595 B
Docker
25 lines
595 B
Docker
FROM debian:latest
|
|
|
|
# Set working directory
|
|
WORKDIR /app
|
|
|
|
# Install Python and essential tools
|
|
RUN apt-get update && apt-get install -y \
|
|
python3 \
|
|
python3-pip \
|
|
curl \
|
|
wget \
|
|
xvfb \
|
|
&& apt-get clean
|
|
|
|
# Install Playwright dependencies
|
|
RUN pip3 install --no-cache-dir playwright tabulate camoufox[geoip] --break-system-packages && \
|
|
playwright install-deps && \
|
|
playwright install firefox && \
|
|
python3 -m camoufox fetch
|
|
|
|
# Copy the benchmark script
|
|
COPY benchmark.py /app/
|
|
|
|
# Default entrypoint to run the benchmark
|
|
ENTRYPOINT ["python3", "/app/benchmark.py"]
|