diff --git a/Dockerfile b/Dockerfile index 241c14ca20..faaa6b8e37 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,4 +11,4 @@ COPY . . RUN make && \ ln -s /opt/vlang/v /usr/local/bin/v -CMD [ "bash" ] +CMD [ "v" ] diff --git a/Dockerfile.alpine b/Dockerfile.alpine index 4d85e999dc..b62c68a07b 100644 --- a/Dockerfile.alpine +++ b/Dockerfile.alpine @@ -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"] diff --git a/README.md b/README.md index 8909b83453..0f3a1c5783 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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 ```