| |
| |
| FROM golang:1.22-alpine AS builder-go |
|
|
| |
| WORKDIR /src |
|
|
| |
| COPY golang/go.mod ./ |
| RUN go mod download |
|
|
| |
| COPY golang/ . |
|
|
| |
| |
| RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o /go_app_binary . |
|
|
|
|
| |
| |
| FROM python:3.11-slim |
|
|
| |
| WORKDIR /app |
|
|
| |
| |
| RUN apt-get update && apt-get install -y --no-install-recommends \ |
| supervisor \ |
| libatk1.0-0 libatk-bridge2.0-0 libcups2 libdbus-1-3 libdrm2 libgbm1 libgtk-3-0 \ |
| libnspr4 libnss3 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxdamage1 \ |
| libxext6 libxfixes3 libxrandr2 libxrender1 libxtst6 ca-certificates \ |
| fonts-liberation libasound2 libpangocairo-1.0-0 libpango-1.0-0 libu2f-udev xvfb \ |
| && rm -rf /var/lib/apt/lists/* |
|
|
| |
| COPY --from=builder-go /go_app_binary . |
|
|
| |
| COPY camoufox-py/requirements.txt ./camoufox-py/requirements.txt |
| RUN pip install --no-cache-dir -r ./camoufox-py/requirements.txt |
|
|
| |
| |
| RUN camoufox fetch |
|
|
| |
| COPY camoufox-py/ . |
| |
| |
| |
| |
| |
|
|
| |
| COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf |
|
|
| |
| |
| CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"] |
|
|
| |
| |
| |
| EXPOSE 5345 7860 |
|
|