File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 11# Use an official Python runtime as a parent image
2- FROM python:3.13-slim
2+ FROM python:3.13-alpine
33
44# Set environment variables
55ENV PYTHONDONTWRITEBYTECODE=1 \
@@ -9,16 +9,15 @@ ENV PYTHONDONTWRITEBYTECODE=1 \
99 ENVIRONMENT=production
1010
1111# Install system dependencies and uv
12- RUN apt-get update && apt-get install -y \
12+ RUN apk add --no-cache \
1313 curl \
1414 ca-certificates \
15- && rm -rf /var/lib/apt/lists/* \
1615 && curl -LsSf https://astral.sh/uv/install.sh | sh \
1716 && mv /root/.local/bin/uv /usr/local/bin/uv \
1817 && mv /root/.local/bin/uvx /usr/local/bin/uvx
1918
2019# Create a non-root user and group
21- RUN groupadd -r - g 1000 annuaire && useradd -r -u 1000 -g annuaire annuaire
20+ RUN addgroup - g 1000 annuaire && adduser -D -u 1000 -G annuaire annuaire
2221
2322# Set the working directory in the container
2423WORKDIR /app
You can’t perform that action at this time.
0 commit comments