vlang (sha256:50450a7d446aab785ad51687acdd1c4379f5a8d9a1b043df983098897b6fe5a0)
Published 2023-02-15 20:44:20 +01:00 by Jef Roosens
Installation
docker pull git.rustybever.be/vieter-v/vlang@sha256:50450a7d446aab785ad51687acdd1c4379f5a8d9a1b043df983098897b6fe5a0
sha256:50450a7d446aab785ad51687acdd1c4379f5a8d9a1b043df983098897b6fe5a0
Image Layers
ADD file:9bd9ea42a9f3bdc769e80c6b8a4b117d65f73ae68e155a6172a1184e7ac8bcc1 in / |
CMD ["/bin/sh"] |
ARG TARGETPLATFORM |
ARG V_COMMIT_HASH=5d4c9dc9fc11bf8648541c934adb64f27cb94e37 |
ARG VC_COMMIT_HASH=7919b47d852650ca09e51a1f44cab0faa3a973eb |
ENV VVV=/opt/vlang |
ENV PATH=/opt/vlang:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
ENV VFLAGS=-cc gcc -gc none |
RUN |3 TARGETPLATFORM=linux/arm64 V_COMMIT_HASH=5d4c9dc9fc11bf8648541c934adb64f27cb94e37 VC_COMMIT_HASH=7919b47d852650ca09e51a1f44cab0faa3a973eb /bin/sh -c apk --no-cache add git make gcc curl musl-dev openssl openssl-libs-static openssl-dev sqlite-static sqlite-dev libarchive-static libarchive-dev zlib-static zlib-dev bzip2-static bzip2-dev xz-static xz-dev expat-static expat-dev zstd zstd-dev lz4-static lz4-dev diffutils mandoc unzip # buildkit |
WORKDIR /opt |
RUN |3 TARGETPLATFORM=linux/arm64 V_COMMIT_HASH=5d4c9dc9fc11bf8648541c934adb64f27cb94e37 VC_COMMIT_HASH=7919b47d852650ca09e51a1f44cab0faa3a973eb /bin/sh -c curl -Lo v.zip "https://github.com/vlang/v/archive/${V_COMMIT_HASH}.zip" && unzip v.zip && rm v.zip && mv "v-${V_COMMIT_HASH}" vlang # buildkit |
WORKDIR /opt/vlang |
RUN |3 TARGETPLATFORM=linux/arm64 V_COMMIT_HASH=5d4c9dc9fc11bf8648541c934adb64f27cb94e37 VC_COMMIT_HASH=7919b47d852650ca09e51a1f44cab0faa3a973eb /bin/sh -c curl -Lo vc.zip "https://github.com/vlang/vc/archive/${VC_COMMIT_HASH}.zip" && unzip vc.zip && rm vc.zip && mv "vc-${VC_COMMIT_HASH}" vc && make fresh_tcc && make local=1 prod=1 && ln -s /opt/vlang/v /usr/bin/v # buildkit |
RUN |3 TARGETPLATFORM=linux/arm64 V_COMMIT_HASH=5d4c9dc9fc11bf8648541c934adb64f27cb94e37 VC_COMMIT_HASH=7919b47d852650ca09e51a1f44cab0faa3a973eb /bin/sh -c if [ "$TARGETPLATFORM" = 'linux/amd64' ]; then wget -O /usr/local/bin/mc https://dl.min.io/client/mc/release/linux-amd64/mc && chmod +x /usr/local/bin/mc ; fi # buildkit |
CMD ["v"] |