-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.alpine
37 lines (27 loc) · 902 Bytes
/
Dockerfile.alpine
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
FROM alpine:3.12
LABEL maintainer="spytheman <[email protected]>"
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 mkdir -p /opt/vlang && ln -s /opt/vlang/v /usr/bin/v
ARG USE_LOCAL
## libexecinfo is needed for the bundled tcc
RUN apk --no-cache add \
git make upx gcc bash \
musl-dev libc-dev \
openssl-dev sqlite-dev \
libx11-dev glfw-dev freetype-dev \
libexecinfo-dev libexecinfo-static \
libc6-compat gcompat binutils
## RUN apk --no-cache add --virtual sdl2deps sdl2-dev sdl2_ttf-dev sdl2_mixer-dev sdl2_image-dev
COPY . /vlang-local
RUN if [[ -z "${USE_LOCAL}" ]] ; then \
git clone https://github.com/vlang/v/ /opt/vlang && \
rm -rf /vlang-local ; \
else \
mv /vlang-local/* . && \
rm -rf /vlang-local ; \
fi
RUN make && v -version
CMD ["v"]