fix: optimize dockerfile

This commit is contained in:
2026-03-12 19:28:36 +01:00
parent 3b7c10b416
commit 5e7cfec791

View File

@@ -3,7 +3,6 @@ FROM python:3-alpine
RUN apk add --no-cache curl lzo-dev gcc libc-dev RUN apk add --no-cache curl lzo-dev gcc libc-dev
WORKDIR /app WORKDIR /app
COPY ./ .
RUN pip install --no-cache-dir -U pip RUN pip install --no-cache-dir -U pip
RUN pip install --no-cache-dir --break-system-packages waitress RUN pip install --no-cache-dir --break-system-packages waitress
@@ -11,6 +10,7 @@ RUN pip install --no-cache-dir --break-system-packages waitress
COPY req.txt . COPY req.txt .
RUN pip install --no-cache-dir -r req.txt RUN pip install --no-cache-dir -r req.txt
COPY ./ .
RUN ln -s /app/uploads/ /app/static/uploads RUN ln -s /app/uploads/ /app/static/uploads
EXPOSE 5000/tcp EXPOSE 5000/tcp