Compare commits

..

No commits in common. "c90ee6b73fa3869c00e7b6dea068df7a672f0169" and "3c30eaeaee2c9bb366b0e30ecc4f10672bd8fb52" have entirely different histories.

View File

@ -1,5 +1,5 @@
# Multi-stage build for production
FROM python:alpine AS base
FROM python:alpine as base
# Set environment variables
ENV PYTHONDONTWRITEBYTECODE=1 \
@ -16,12 +16,11 @@ RUN apk add --no-cache \
postgresql-dev \
curl
# Create non-root user (Alpine Linux style)
RUN addgroup -g 1001 -S appuser && \
adduser -u 1001 -S appuser -G appuser
# Create non-root user
RUN groupadd -r appuser && useradd -r -g appuser appuser
# Development stage
FROM base AS development
FROM base as development
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
@ -31,7 +30,7 @@ USER appuser
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]
# Production stage
FROM base AS production
FROM base as production
WORKDIR /app
# Install production dependencies