Files
sonobarr/Dockerfile
Beda Schmid 924977832c Migration without manual interaction
This is an attempt at fixing the migration so to not require manual interaction
2025-10-09 19:25:03 -03:00

26 lines
550 B
Docker

FROM python:3.12-alpine
ARG RELEASE_VERSION
ENV RELEASE_VERSION=${RELEASE_VERSION}
ENV PYTHONPATH="/sonobarr/src"
RUN apk update && apk add --no-cache su-exec
# Copy only requirements first
COPY requirements.txt /sonobarr/
WORKDIR /sonobarr
# Install requirements
RUN pip install --no-cache-dir -r requirements.txt
# Now copy the rest of your code
COPY src/ /sonobarr/src/
COPY migrations/ /sonobarr/migrations/
COPY gunicorn_config.py /sonobarr/
COPY init.sh /sonobarr/
RUN chmod +x init.sh
ENTRYPOINT ["./init.sh"]