open-redirect/api/dockerfile_redirector
edraft d9eeda3c80
All checks were successful
Build on push / build-api (push) Successful in 8s
Build on push / build-redirector (push) Successful in 31s
Build on push / build-web (push) Successful in 50s
Added deps of redirector
2025-01-10 14:02:19 +01:00

24 lines
451 B
Plaintext

# syntax=docker/dockerfile:1
FROM python:3.12.8-alpine
WORKDIR /app
COPY ./src/api/ ./api
COPY ./src/core/ ./core
COPY ./src/data/ ./data
COPY ./src/static/ ./static
COPY ./src/templates/ ./templates
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"]