Update Dockerfile
This commit is contained in:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user