2023-11-29 03:09:11 +01:00
|
|
|
FROM mambaorg/micromamba:bookworm-slim@sha256:d20c621f3ae42f50f380166b15b6c88b14fa62ab6ea188f2cef33451d64057c7 as builder
|
2023-10-31 11:02:04 +01: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"]
|