Skip to content

Commit

Permalink
Dockerfile: run the repl by default (vlang#8993)
Browse files Browse the repository at this point in the history
  • Loading branch information
zakuro9715 authored Feb 27, 2021
1 parent 1fd0ace commit 0b3f209
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ COPY . .
RUN make && \
ln -s /opt/vlang/v /usr/local/bin/v

CMD [ "bash" ]
CMD [ "v" ]
2 changes: 2 additions & 0 deletions Dockerfile.alpine
Original file line number Diff line number Diff line change
Expand Up @@ -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 git clone https://github.com/vlang/v /opt/vlang && make && v -version

CMD ["v"]
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ git clone https://github.com/vlang/v
cd v
docker build -t vlang .
docker run --rm -it vlang:latest
v
```

### Docker with Alpine/musl
Expand All @@ -147,7 +146,6 @@ git clone https://github.com/vlang/v
cd v
docker build -t vlang --file=Dockerfile.alpine .
docker run --rm -it vlang:latest
/usr/local/v/v
```

</details>
Expand Down

0 comments on commit 0b3f209

Please sign in to comment.