mirror of
https://github.com/ManiMatter/decluttarr.git
synced 2026-04-17 21:53:58 +02:00
Due tot he fact version pinning is in use, there's no point in reinstalling deps each build. Instead copy everything after dep install to increase caching
26 lines
677 B
Docker
26 lines
677 B
Docker
#FROM python:3.9-slim-buster
|
|
# For debugging:
|
|
# sudo docker run --rm -it --entrypoint sh ghcr.io/manimatter/decluttarr:dev
|
|
|
|
FROM python:3.10.13-slim
|
|
|
|
# Define a build-time argument for IMAGE_TAG
|
|
ARG IMAGE_TAG
|
|
ARG SHORT_COMMIT_ID
|
|
|
|
# Set an environment variable using the build-time argument
|
|
ENV IMAGE_TAG=$IMAGE_TAG
|
|
ENV SHORT_COMMIT_ID=$SHORT_COMMIT_ID
|
|
|
|
LABEL org.opencontainers.image.source="https://github.com/ManiMatter/decluttarr"
|
|
|
|
ENV IS_IN_DOCKER 1
|
|
|
|
WORKDIR /app
|
|
|
|
COPY ./docker/requirements.txt ./docker/requirements.txt
|
|
RUN pip install --no-cache-dir -r docker/requirements.txt
|
|
COPY . .
|
|
|
|
CMD ["python", "main.py"]
|