mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
25 lines
678 B
Docker
25 lines
678 B
Docker
FROM python:3.13.0-alpine@sha256:c38ead8bcf521573dad837d7ecfdebbc87792202e89953ba8b2b83a9c5a520b6
|
|
|
|
WORKDIR /tmp
|
|
|
|
COPY requirements.txt .
|
|
|
|
RUN apk add --no-cache gcc musl-dev libffi-dev && \
|
|
MAKEFLAGS="-j $(nproc)" pip install --no-cache-dir --require-hashes --no-deps -r requirements.txt && \
|
|
rm -f requirements.txt
|
|
|
|
WORKDIR /opt/tests
|
|
|
|
RUN addgroup -g 101 nginx && \
|
|
adduser -h /opt/tests -g nginx -s /bin/sh -G nginx -D -H -u 101 nginx
|
|
|
|
COPY --chown=nginx:nginx main.py .
|
|
ADD ./init/plugins external
|
|
ADD ./init/bunkerweb bunkerweb
|
|
|
|
RUN chown -R nginx:nginx external bunkerweb && \
|
|
chmod -R 777 external bunkerweb
|
|
|
|
USER nginx:nginx
|
|
|
|
ENTRYPOINT [ "python3", "main.py" ]
|