2024-02-27 07:53:37 +02:00
|
|
|
FROM mambaorg/micromamba:bookworm-slim@sha256:6038b89363c9181215f3d9e8ce2720c880e224537f4028a854482e43a9b4998a as builder
|
2023-10-31 12:02:04 +02:00
|
|
|
|
|
|
|
ENV NODE_ENV=production \
|
|
|
|
TRANSFORMERS_CACHE=/cache \
|
|
|
|
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"]
|