open-redirect/api/dockerfile

22 lines
361 B
Plaintext
Raw Permalink Normal View History

2024-12-13 23:27:18 +01:00
# syntax=docker/dockerfile:1
2025-01-04 14:09:17 +01:00
FROM python:3.12.8-alpine
2024-12-13 23:27:18 +01:00
WORKDIR /app
COPY ./src/ .
2025-01-09 20:08:13 +01:00
RUN rm redirector
RUN rm redirector.py
RUN rm -r static
RUN rm -r templates
2024-12-13 23:27:18 +01:00
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/open-redirect"]