Dockerfile: run the repl by default (#8993)

pull/8995/head
zakuro 2021-02-27 17:08:33 +09:00 committed by GitHub
parent 1fd0aceb42
commit 0b3f209965
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -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" ]

View File

@ -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"]

View File

@ -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>