Update Dockerfile
Some checks failed
Build Docker image / test (push) Has been cancelled
Build Docker image / build (push) Has been cancelled

This commit is contained in:
Roman Krček
2024-08-04 21:00:56 +02:00
parent 43df509be2
commit c90f430741
3 changed files with 174 additions and 7 deletions

View File

@@ -1,4 +1,4 @@
FROM python:3.11-alpine AS base
FROM python:3.11-slim AS base
LABEL maintainer="Roman Krček"
WORKDIR /app
@@ -12,13 +12,12 @@ RUN --mount=type=cache,target=/tmp/pip_cache \
pip install \
-r requirements.txt \
--extra-index-url https://www.piwheels.org/simple \
--cache-dir /tmp/pip_cache \
--user
--cache-dir /tmp/pip_cache
# Runtime stage
FROM base AS runtime
COPY --from=builder /root/.local /root/.local
COPY --from=builder /usr/local/lib /usr/local/lib
COPY telegram_downloader_bot/ telegram_downloader_bot/
VOLUME ["/data"]