mirror of
https://github.com/Dodelidoo-Labs/sonobarr.git
synced 2026-04-23 15:46:56 -04:00
24 lines
478 B
Docker
24 lines
478 B
Docker
FROM python:3.12-alpine
|
|
|
|
ARG RELEASE_VERSION
|
|
ENV RELEASE_VERSION=${RELEASE_VERSION}
|
|
|
|
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 gunicorn_config.py /sonobarr/
|
|
COPY init.sh /sonobarr/
|
|
|
|
RUN chmod +x init.sh
|
|
|
|
ENTRYPOINT ["./init.sh"]
|