Dockerfile: run the repl by default (#8993)
parent
1fd0aceb42
commit
0b3f209965
|
@ -11,4 +11,4 @@ COPY . .
|
||||||
RUN make && \
|
RUN make && \
|
||||||
ln -s /opt/vlang/v /usr/local/bin/v
|
ln -s /opt/vlang/v /usr/local/bin/v
|
||||||
|
|
||||||
CMD [ "bash" ]
|
CMD [ "v" ]
|
||||||
|
|
|
@ -19,3 +19,5 @@ RUN apk --no-cache add \
|
||||||
## RUN apk --no-cache add --virtual sdl2deps sdl2-dev sdl2_ttf-dev sdl2_mixer-dev sdl2_image-dev
|
## RUN apk --no-cache add --virtual sdl2deps sdl2-dev sdl2_ttf-dev sdl2_mixer-dev sdl2_image-dev
|
||||||
|
|
||||||
RUN git clone https://github.com/vlang/v /opt/vlang && make && v -version
|
RUN git clone https://github.com/vlang/v /opt/vlang && make && v -version
|
||||||
|
|
||||||
|
CMD ["v"]
|
||||||
|
|
|
@ -137,7 +137,6 @@ git clone https://github.com/vlang/v
|
||||||
cd v
|
cd v
|
||||||
docker build -t vlang .
|
docker build -t vlang .
|
||||||
docker run --rm -it vlang:latest
|
docker run --rm -it vlang:latest
|
||||||
v
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Docker with Alpine/musl
|
### Docker with Alpine/musl
|
||||||
|
@ -147,7 +146,6 @@ git clone https://github.com/vlang/v
|
||||||
cd v
|
cd v
|
||||||
docker build -t vlang --file=Dockerfile.alpine .
|
docker build -t vlang --file=Dockerfile.alpine .
|
||||||
docker run --rm -it vlang:latest
|
docker run --rm -it vlang:latest
|
||||||
/usr/local/v/v
|
|
||||||
```
|
```
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
Loading…
Reference in New Issue