2024-07-23 04:05:16 +02:00
|
|
|
FROM mambaorg/micromamba:bookworm-slim@sha256:94d6837f023c0fc0bb68782dd2a984ff7fe0e21ea7e533056c9b8ca060e31de2 as builder
|
2023-10-31 11:02:04 +01:00
|
|
|
|
2024-05-17 19:30:05 +02:00
|
|
|
ENV TRANSFORMERS_CACHE=/cache \
|
2023-10-31 11:02:04 +01: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"]
|