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

fix: missing git command

parent 89db8d41
No related branches found
No related tags found
No related merge requests found
FROM docker.io/alpine/git:latest AS prebuilder
COPY . /app
WORKDIR /app
RUN git rev-parse --short HEAD > src/version.txt \
&& rm -rf .git public storage
FROM docker.io/nginxinc/nginx-unprivileged:1.27 FROM docker.io/nginxinc/nginx-unprivileged:1.27
ENV JULIA_PROJECT /app ENV JULIA_PROJECT /app
...@@ -11,7 +20,7 @@ ARG JULIA_VERSION=1.10.5 ...@@ -11,7 +20,7 @@ ARG JULIA_VERSION=1.10.5
ARG UID=101 ARG UID=101
ARG GID=101 ARG GID=101
COPY --chown="$UID:$GID" . "$JULIA_PROJECT" COPY --chown="$UID:$GID" --from=prebuilder /app "$JULIA_PROJECT"
RUN export HOME="$JULIA_PROJECT" \ RUN export HOME="$JULIA_PROJECT" \
&& curl -fsSL https://install.julialang.org \ && curl -fsSL https://install.julialang.org \
...@@ -20,15 +29,12 @@ RUN export HOME="$JULIA_PROJECT" \ ...@@ -20,15 +29,12 @@ RUN export HOME="$JULIA_PROJECT" \
ENV PATH "$PATH:$JULIA_PROJECT/.juliaup/bin" ENV PATH "$PATH:$JULIA_PROJECT/.juliaup/bin"
RUN cd "$JULIA_PROJECT" \ RUN cd "$JULIA_PROJECT" \
&& git rev-parse --short HEAD > src/version.txt \
&& rm -rf .git public storage \
&& cp front/Manifest.toml . \ && cp front/Manifest.toml . \
&& julia -e 'using Pkg; Pkg.instantiate()' \ && julia -e 'using Pkg; Pkg.instantiate()' \
&& mkdir -p public \ && mkdir -p public \
&& chmod a+x front/entrypoint.sh && chmod a+x front/entrypoint.sh
ARG PUBLIC_URL
ARG PUBLIC_URL=localhost
ARG NGINX_CONFIG=/etc/nginx/conf.d/default.conf ARG NGINX_CONFIG=/etc/nginx/conf.d/default.conf
......
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