Skip to content

Commit

Permalink
🐞fix: fix v binary soft link
Browse files Browse the repository at this point in the history
  • Loading branch information
up9cloud committed Mar 19, 2021
1 parent eaa4e65 commit 241b7e7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
8 changes: 1 addition & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,11 @@ RUN set -ex; \

WORKDIR /opt
RUN set -ex; \
# We need source, otherwise some test cases won't pass (module "compiler" (not found), failed to open file "/opt/vlang/vlib/v/gen/tests/1.vv")
wget -O src.zip "$VLANG_SRC_URL"; \
echo "$VLANG_SRC_SHA256 src.zip" | sha256sum -c; \
unzip src.zip; \
mv v-${VLANG_VERSION} vlang; \
rm src.zip; \
wget -O v.zip "$VLANG_URL"; \
echo "$VLANG_SHA256 v.zip" | sha256sum -c; \
unzip -o v.zip -d vlang; \
rm v.zip; \
ln -s /opt/vlang/v /usr/local/bin/v; \
ln -s /opt/vlang/v/v /usr/local/bin/v; \
v test-self

WORKDIR /root
Expand Down
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# docker-vlang

Build from official release, and make sure pass `v test-compiler` all test cases.
Build from official release.

If you wanted to make it from latest source, you could consider [taojy123/vlang](https://hub.docker.com/r/taojy123/vlang/dockerfile) or build it from [official Dockerfile](https://github.com/vlang/v/blob/master/Dockerfile)
If you want to build it from latest source, you could consider [official Dockerfile](https://github.com/vlang/v/blob/master/Dockerfile)

## Usage

Expand All @@ -13,3 +13,7 @@ V 0.1.24 0d93eeb
Use Ctrl-C or `exit` to exit
>>>
```

## Similar images

- [taojy123/vlang](https://hub.docker.com/r/taojy123/vlang/dockerfile)

0 comments on commit 241b7e7

Please sign in to comment.