FROM ghcr.io/astral-sh/uv:python3.13-bookworm AS development

LABEL org.opencontainers.image.authors="Mike Mellor <mike.mellor@avalerehealth.com>"

# Add py user
RUN useradd -m -G www-data -s /bin/bash py

COPY entrypoint.sh /bin/entrypoint.sh
RUN chmod +x /bin/entrypoint.sh
ENTRYPOINT ["/bin/entrypoint.sh"]

CMD ["sleep infinity"]

FROM fishawack/lab-env-python-0:latest AS production

# Copy source code into container
COPY . /app