prantlf/vlang
A Docker image with the V language compiler for building within Docker.
1.2K
A Docker image with the V language compiler for building within Docker. The GitHub project produces images ghcr.io/prantlf/vlang
and prantlf/vlang
(on hub.docker.com) from the latest release of V
. It is scheduled to run at least every week to follow weekly releases of V
. The image will be tagged by the V
release name, latest
and the image produced the last time will be tagged by previous
. For example, how to access the image by name and the latest one:
ghcr.io/prantlf/vlang:weekly.2024.19
ghcr.io/prantlf/vlang:latest
prantlf/vlang:weekly.2024.19
prantlf/vlang:latest
FROM prantlf/vlang as builder
COPY . .
RUN v install && v .
FROM busybox:stable
COPY --from=builder /src/tool /
WORKDIR /
ENTRYPOINT ["/tool"]
The default working directory is /src
. The V
compiler is /opt/vlang/v
and /opt/vlang
is in PATH
.
The image busybox:stable
is a little bigger than scratch
, but it's convenient, when the image hes to be entered for some investigation. If your program links to other libraries than glibc, you'll ned to add them the target image. Or use the image debian:stable-slim
as the base image, if the image size isn't critical.
Copyright (C) 2024 Ferdinand Prantl
Licensed under the MIT License.
docker pull prantlf/vlang