From ed169abfff84f2d4e1a5057201fbc7e976d2d893 Mon Sep 17 00:00:00 2001 From: Jef Roosens Date: Thu, 20 Jan 2022 21:52:19 +0100 Subject: [PATCH] Builder dockerfile now builds from gh releases [CI SKIP] --- Dockerfile.builder | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/Dockerfile.builder b/Dockerfile.builder index 48048f8..406386b 100644 --- a/Dockerfile.builder +++ b/Dockerfile.builder @@ -1,6 +1,6 @@ FROM alpine:3.12 -LABEL maintainer="spytheman " +ARG V_RELEASE=weekly.2022.03 WORKDIR /opt/vlang @@ -8,10 +8,9 @@ ENV VVV /opt/vlang ENV PATH /opt/vlang:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin ENV VFLAGS -cc gcc -RUN mkdir -p /opt/vlang && \ - ln -s /opt/vlang/v /usr/bin/v && \ +RUN ln -s /opt/vlang/v /usr/bin/v && \ apk --no-cache add \ - git make gcc \ + curl git make gcc \ musl-dev \ openssl-libs-static openssl-dev \ zlib-static bzip2-static xz-dev expat-static zstd-static lz4-static \ @@ -20,14 +19,15 @@ RUN mkdir -p /opt/vlang && \ libarchive-static libarchive-dev \ diffutils -COPY . /vlang-local - -RUN git clone \ - 'https://github.com/ChewingBever/v/' \ - -b vweb-streaming \ - --single-branch \ - '/opt/vlang' && \ - rm -rf '/vlang-local' && \ - make && v -version +RUN curl -Lo - "https://github.com/vlang/v/archive/refs/tags/${V_RELEASE}.tar.gz" | tar xzf - && \ + mv "v-${V_RELEASE}"/* /opt/vlang && \ + make && v -version +# RUN git clone \ +# 'https://github.com/ChewingBever/v/' \ +# -b vweb-streaming \ +# --single-branch \ +# '/opt/vlang' && \ +# rm -rf '/vlang-local' && \ +# make && v -version CMD ["v"]