vieter/Dockerfile.builder

34 lines
900 B
Docker
Raw Normal View History

2022-01-14 11:20:24 +01:00
FROM alpine:3.12
ARG V_RELEASE=weekly.2022.03
2022-01-14 11:20:24 +01:00
WORKDIR /opt/vlang
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 ln -s /opt/vlang/v /usr/bin/v && \
apk --no-cache add \
curl git make gcc \
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 \
diffutils
2022-01-14 11:20:24 +01:00
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
2022-01-14 11:20:24 +01:00
CMD ["v"]