2022-06-02 17:06:52 +02:00
|
|
|
FROM alpine:3.16
|
2022-04-15 09:52:10 +02:00
|
|
|
|
|
|
|
ARG TARGETPLATFORM
|
|
|
|
|
|
|
|
WORKDIR /opt/vlang
|
|
|
|
|
|
|
|
ENV VVV /opt/vlang
|
|
|
|
ENV PATH /opt/vlang:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
2022-06-10 14:21:02 +02:00
|
|
|
ENV VFLAGS -cc gcc -gc none
|
2022-04-15 09:52:10 +02:00
|
|
|
ENV V_PATH /opt/vlang/v
|
|
|
|
|
|
|
|
RUN ln -s /opt/vlang/v /usr/bin/v && \
|
|
|
|
apk --no-cache add \
|
|
|
|
git make gcc curl openssl \
|
|
|
|
musl-dev \
|
|
|
|
openssl-libs-static openssl-dev \
|
|
|
|
zlib-static bzip2-static xz-dev expat-static zstd-static lz4-static \
|
|
|
|
sqlite-static sqlite-dev \
|
|
|
|
libx11-dev glfw-dev freetype-dev \
|
|
|
|
libarchive-static libarchive-dev \
|
2022-06-02 17:06:52 +02:00
|
|
|
diffutils \
|
|
|
|
mandoc
|
2022-04-15 09:52:10 +02:00
|
|
|
|
2022-04-18 10:27:07 +02:00
|
|
|
RUN git clone https://git.rustybever.be/vieter/v /opt/vlang && \
|
2022-04-15 09:52:10 +02:00
|
|
|
make && \
|
|
|
|
v -version
|
|
|
|
|
|
|
|
RUN 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
|
|
|
|
|
|
|
|
CMD ["v"]
|