mirror of
https://github.com/wahyd4/links.git
synced 2026-08-08 21:04:53 +10:00
Update docker
This commit is contained in:
+2
-1
@@ -1,7 +1,7 @@
|
||||
FROM ghcr.io/astral-sh/uv:bookworm-slim AS uv
|
||||
|
||||
# Build stage
|
||||
FROM python:3.12-slim AS builder
|
||||
FROM python:3.12 AS builder
|
||||
|
||||
# Set environment variables
|
||||
ENV PYTHONDONTWRITEBYTECODE=1
|
||||
@@ -80,6 +80,7 @@ RUN useradd -m -u 1000 appuser \
|
||||
&& chown -R appuser:appuser /app
|
||||
|
||||
# Copy only the virtual environment and built assets
|
||||
COPY --from=uv /usr/local/bin/uv /usr/local/bin/uv
|
||||
COPY --from=builder --chown=appuser:appuser /app/.venv /app/.venv
|
||||
COPY --from=builder --chown=appuser:appuser /app/staticfiles /app/staticfiles
|
||||
COPY --from=builder --chown=appuser:appuser /app/locale /app/locale
|
||||
|
||||
Reference in New Issue
Block a user