open-redirect/api/dockerfile_redirector

24 lines
451 B
Plaintext
Raw Normal View History

2025-01-09 20:08:13 +01:00
# syntax=docker/dockerfile:1
FROM python:3.12.8-alpine
WORKDIR /app
2025-01-10 14:02:19 +01:00
COPY ./src/api/ ./api
2025-01-09 20:14:22 +01:00
COPY ./src/core/ ./core
COPY ./src/data/ ./data
2025-01-09 20:33:12 +01:00
COPY ./src/static/ ./static
COPY ./src/templates/ ./templates
2025-01-09 20:08:13 +01:00
COPY ./src/redirector.py .
COPY ./src/redirector .
COPY ./requirements.txt .
RUN python -m pip install --upgrade pip
RUN python -m pip install -r requirements.txt
RUN apk update
RUN apk add bash
RUN apk add nano
CMD [ "bash", "/app/redirector"]