Builder dockerfile now builds from gh releases [CI SKIP]

main
Jef Roosens 2022-01-20 21:52:19 +01:00
parent 8fcec3b18b
commit ed169abfff
Signed by: Jef Roosens
GPG Key ID: B580B976584B5F30
1 changed files with 13 additions and 13 deletions

View File

@ -1,6 +1,6 @@
FROM alpine:3.12 FROM alpine:3.12
LABEL maintainer="spytheman <spytheman@bulsynt.org>" ARG V_RELEASE=weekly.2022.03
WORKDIR /opt/vlang 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 PATH /opt/vlang:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ENV VFLAGS -cc gcc ENV VFLAGS -cc gcc
RUN mkdir -p /opt/vlang && \ RUN ln -s /opt/vlang/v /usr/bin/v && \
ln -s /opt/vlang/v /usr/bin/v && \
apk --no-cache add \ apk --no-cache add \
git make gcc \ curl git make gcc \
musl-dev \ musl-dev \
openssl-libs-static openssl-dev \ openssl-libs-static openssl-dev \
zlib-static bzip2-static xz-dev expat-static zstd-static lz4-static \ 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 \ libarchive-static libarchive-dev \
diffutils diffutils
COPY . /vlang-local RUN curl -Lo - "https://github.com/vlang/v/archive/refs/tags/${V_RELEASE}.tar.gz" | tar xzf - && \
mv "v-${V_RELEASE}"/* /opt/vlang && \
RUN git clone \
'https://github.com/ChewingBever/v/' \
-b vweb-streaming \
--single-branch \
'/opt/vlang' && \
rm -rf '/vlang-local' && \
make && v -version 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"] CMD ["v"]