mirror of
https://github.com/wahyd4/links.git
synced 2026-08-08 21:04:53 +10:00
fix docker
This commit is contained in:
+2
-5
@@ -58,8 +58,8 @@ RUN rm -rf /tmp/.cache/uv ~/.npm ~/.cache \
|
||||
&& rm -rf /app/.venv/lib/python3.12/site-packages/pip \
|
||||
&& rm -rf /app/.venv/lib/python3.12/site-packages/setuptools
|
||||
|
||||
# Production stage - use Debian Bookworm slim
|
||||
FROM debian:bookworm-slim
|
||||
# Production stage - use Python 3.12 slim
|
||||
FROM python:3.12-slim
|
||||
|
||||
# Set environment variables
|
||||
ENV PYTHONDONTWRITEBYTECODE=1
|
||||
@@ -74,9 +74,6 @@ WORKDIR /app
|
||||
|
||||
# Install only runtime dependencies in one layer
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
python3.12 \
|
||||
python3.12-lib2to3 \
|
||||
python3.12-distutils \
|
||||
curl \
|
||||
chromium \
|
||||
chromium-driver \
|
||||
|
||||
Reference in New Issue
Block a user