Unverified Commit 9621590f authored by Maxime Lefrançois's avatar Maxime Lefrançois
Browse files

explicit ARG for all targets

parent 05137314
Loading
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -23,18 +23,24 @@ ENTRYPOINT ["saref-dev"]

# ---- Website ----
FROM base AS website
ARG PSEUDO_VERSION=1 

ENV SETUPTOOLS_SCM_PRETEND_VERSION_FOR_SAREF_PYPELINE=${PSEUDO_VERSION}
RUN uv pip install --system -e .[website]
ENTRYPOINT ["saref-dev", "website"]

# ---- TS ----
FROM base AS ts
ARG PSEUDO_VERSION=1 

ENV SETUPTOOLS_SCM_PRETEND_VERSION_FOR_SAREF_PYPELINE=${PSEUDO_VERSION}
RUN uv pip install --system -e .[ts]
ENTRYPOINT ["saref-dev", "ts"]

# ---- Check ----
FROM base AS check
ARG PSEUDO_VERSION=1 

# Install Java 21
RUN apt-get update && apt-get install -y openjdk-21-jre-headless && rm -rf /var/lib/apt/lists/*
ENV SETUPTOOLS_SCM_PRETEND_VERSION_FOR_SAREF_PYPELINE=${PSEUDO_VERSION}
@@ -43,6 +49,8 @@ ENTRYPOINT ["saref-dev", "check"]

# ---- All ----
FROM check AS all
ARG PSEUDO_VERSION=1 

ENV SETUPTOOLS_SCM_PRETEND_VERSION_FOR_SAREF_PYPELINE=${PSEUDO_VERSION}
RUN uv pip install --system -e .[website,ts]
ENTRYPOINT ["saref-dev"]
 No newline at end of file