2024-09-27 22:07:59 +00:00
|
|
|
FROM mambaorg/micromamba:bookworm-slim@sha256:e3797091302382ea841498bc93a7b0a50f7c1448333d5e946d2d1608d0c5f43d AS builder
|
2023-10-31 10:02:04 +00:00
|
|
|
|
2024-05-17 17:30:05 +00:00
|
|
|
ENV TRANSFORMERS_CACHE=/cache \
|
2023-10-31 10:02:04 +00:00
|
|
|
PYTHONDONTWRITEBYTECODE=1 \
|
|
|
|
PYTHONUNBUFFERED=1 \
|
|
|
|
PATH="/opt/venv/bin:$PATH" \
|
|
|
|
PYTHONPATH=/usr/src
|
|
|
|
|
|
|
|
COPY --chown=$MAMBA_USER:$MAMBA_USER conda-lock.yml /tmp/conda-lock.yml
|
|
|
|
RUN micromamba install -y -n base -f /tmp/conda-lock.yml && \
|
|
|
|
micromamba remove -y -n base cxx-compiler && \
|
|
|
|
micromamba clean --all --yes
|
|
|
|
|
|
|
|
WORKDIR /usr/src/app
|
|
|
|
|
|
|
|
COPY --chown=$MAMBA_USER:$MAMBA_USER start.sh .
|
|
|
|
COPY --chown=$MAMBA_USER:$MAMBA_USER app .
|
|
|
|
|
|
|
|
ENTRYPOINT ["/usr/local/bin/_entrypoint.sh"]
|
|
|
|
CMD ["./start.sh"]
|