diff options
author | Indrajith K L | 2022-12-03 17:00:20 +0530 |
---|---|---|
committer | Indrajith K L | 2022-12-03 17:00:20 +0530 |
commit | f5c4671bfbad96bf346bd7e9a21fc4317b4959df (patch) | |
tree | 2764fc62da58f2ba8da7ed341643fc359873142f /v_windows/v/old/Dockerfile.alpine | |
download | cli-tools-windows-f5c4671bfbad96bf346bd7e9a21fc4317b4959df.tar.gz cli-tools-windows-f5c4671bfbad96bf346bd7e9a21fc4317b4959df.tar.bz2 cli-tools-windows-f5c4671bfbad96bf346bd7e9a21fc4317b4959df.zip |
Diffstat (limited to 'v_windows/v/old/Dockerfile.alpine')
-rw-r--r-- | v_windows/v/old/Dockerfile.alpine | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/v_windows/v/old/Dockerfile.alpine b/v_windows/v/old/Dockerfile.alpine new file mode 100644 index 0000000..a4bc1cb --- /dev/null +++ b/v_windows/v/old/Dockerfile.alpine @@ -0,0 +1,34 @@ +FROM alpine:3.12 + +LABEL maintainer="spytheman <spytheman@bulsynt.org>" + +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 + +RUN apk --no-cache add \ + git make upx gcc bash \ + musl-dev \ + openssl-dev sqlite-dev \ + libx11-dev glfw-dev freetype-dev + +## 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"] |