Rework build scripts (close #5)

- Separate cross-compilation logic to crosscompile.vsh
- Manage Docker in make.vsh, no more manual running `docker build`, etc.
- Add MANUAL.md instruction
- Enchance Dockerfile
This commit is contained in:
ge
2025-11-18 01:35:57 +03:00
parent b81f6a5f29
commit 2c65ab66a9
5 changed files with 435 additions and 332 deletions

View File

@@ -10,8 +10,7 @@ RUN apt-get update && \
apt-get clean && rm -rf /var/cache/apt/archives/* && rm -rf /var/lib/apt/lists/*
RUN git clone --depth=1 https://github.com/vlang/v /opt/v && \
cd /opt/v && \
make && \
make -C /opt/v && \
/opt/v/v symlink && \
v version
@@ -36,4 +35,5 @@ WORKDIR /app
USER 1000:1000
ENV VMODULES=/tmp/.vmodules
ENV VMODULES=/tmp/vmodules
ENV VCACHE=/tmp/vcache