v /
1FROM alpine:3.12
2
3LABEL maintainer="spytheman <[email protected]>"
4
5WORKDIR /opt/vlang
6
7ENV VVV /opt/vlang
8ENV PATH /opt/vlang:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
9ENV VFLAGS -cc gcc
10
11RUN mkdir -p /opt/vlang && ln -s /opt/vlang/v /usr/bin/v
12
13RUN apk --no-cache add \
14 git make upx gcc bash \
15 musl-dev \
16 openssl-dev sqlite-dev \
17 libx11-dev glfw-dev freetype-dev
18
19## RUN apk --no-cache add --virtual sdl2deps sdl2-dev sdl2_ttf-dev sdl2_mixer-dev sdl2_image-dev
20
21RUN git clone https://github.com/vlang/v /opt/vlang && make && v -version
22
23CMD ["v"]