vlang /
	
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
13ARG USE_LOCAL
14
15RUN apk --no-cache add \
16 git make upx gcc bash \
17 musl-dev \
18 openssl-dev sqlite-dev \
19 libx11-dev glfw-dev freetype-dev
20
21## RUN apk --no-cache add --virtual sdl2deps sdl2-dev sdl2_ttf-dev sdl2_mixer-dev sdl2_image-dev
22COPY . /vlang-local
23
24RUN if [[ -z "${USE_LOCAL}" ]] ; then \
25 git clone https://github.com/vlang/v/ /opt/vlang && \
26 rm -rf /vlang-local ; \
27 else \
28 mv /vlang-local/* . && \
29 rm -rf /vlang-local ; \
30 fi
31
32RUN make && v -version
33
34CMD ["v"]