diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000000..e805b4067e --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +#same container that golang use +FROM buildpack-deps:buster-curl + +LABEL maintainer="ANAGO Ronnel " +WORKDIR /etc/vlang +COPY . . +RUN apt-get -yq update && \ + apt-get install -y gcc clang make && \ + make && \ + ln -s /etc/vlang/v /usr/local/bin/v + +CMD [ "bash" ] diff --git a/README.md b/README.md index eafb8b97ae..a7e247d386 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,18 @@ The compilation is temporarily slower for this release: +## Installing V in docker container + +```bash +git clone https://github.com/vlang/v +cd v +docker build -t vlang . +#to enter in docker container +docker run --rm -it vlang:latest +#to enter in v shell run +v +``` + ## Installing V from source ### Linux, macOS, Windows, *BSD, WSL, Android, Raspberry Pi