Skip to content
Snippets Groups Projects
Commit e9b5b0f8 authored by François  LAURENT's avatar François LAURENT
Browse files

feat: temptative Dockerfile for PasteurJanelia backend

parent 509354bd
No related branches found
No related tags found
1 merge request!22Set of commits to be tagger v0.19
Pipeline #136084 passed
name = "LarvaTagger"
uuid = "8b3b36f1-dfed-446e-8561-ea19fe966a4d"
authors = ["François Laurent", "Institut Pasteur"]
version = "0.18.4"
version = "0.18.5"
[deps]
Colors = "5ae59095-9a9b-59fe-a467-6f913c188581"
......
......@@ -28,7 +28,7 @@ FROM base AS prebuild
ENV PIP_DISABLE_PIP_VERSION_CHECK=1 \
PIP_NO_CACHE_DIR=1 \
POETRY_VIRTUALENVS_IN_PROJECT=1 \
POETRY_VERSION=1.2.0
POETRY_VERSION=1.8.3
RUN apt-get update \
&& apt-get install --no-install-recommends -y python3-dev python3-pip \
......
ARG BASE=latest
FROM flaur/larvatagger:${BASE} AS prebuild
ENV PIP_DISABLE_PIP_VERSION_CHECK=1 \
PIP_NO_CACHE_DIR=1 \
POETRY_VIRTUALENVS_IN_PROJECT=1 \
POETRY_VERSION=1.8.3
RUN apt-get update \
&& apt-get install --no-install-recommends -y wget \
&& if ! command -v poetry; then \
apt-get install --no-install-recommends -y python3-dev python3-pip \
&& pip install "poetry==$POETRY_VERSION"; \
fi \
&& rm -rf /var/lib/apt/lists/*
FROM prebuild AS backend
ARG PROJECT_DIR=/app
ARG BACKEND_BRANCH=main
RUN cd $PROJECT_DIR \
&& git clone --depth 1 --no-tags --single-branch -b $BACKEND_BRANCH https://gitlab.pasteur.fr/nyx/PasteurJanelia-adapter PasteurJanelia \
&& cd PasteurJanelia \
&& make package \
&& rm -rf .git ~/.cache
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment