vieter/Dockerfile.builder

37 lines
958 B
Docker
Raw Normal View History

2022-01-14 11:20:24 +01:00
FROM alpine:3.12
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
2022-01-22 22:52:21 +01:00
RUN echo "$TARGETPLATFORM" && exit 1
RUN mkdir -p /opt/vlang && \
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 \
diffutils && \
# yes yes I know this is amd64, it's okay
wget -O /usr/local/bin/mc https://dl.min.io/client/mc/release/linux-amd64/mc && \
chmod +x /usr/local/bin/mc
2022-01-14 11:20:24 +01:00
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
CMD ["v"]