mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
Dockerfile
This commit is contained in:
parent
981185e42f
commit
2c31469ec2
12
Dockerfile
Normal file
12
Dockerfile
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
#same container that golang use
|
||||||
|
FROM buildpack-deps:buster-curl
|
||||||
|
|
||||||
|
LABEL maintainer="ANAGO Ronnel <anagoandy@gmail.com>"
|
||||||
|
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" ]
|
12
README.md
12
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
|
## Installing V from source
|
||||||
|
|
||||||
### Linux, macOS, Windows, *BSD, WSL, Android, Raspberry Pi
|
### Linux, macOS, Windows, *BSD, WSL, Android, Raspberry Pi
|
||||||
|
Loading…
Reference in New Issue
Block a user