mirror of
https://github.com/vlang/v.git
synced 2025-08-03 09:47:15 -04:00
Dockerfile.alpine: use the updated ENV syntax to avoid deprecation warning with the official Docker package, add rsync
too, so the container can be used for running/testing oldv
This commit is contained in:
parent
49fb7ca501
commit
b438f9229d
@ -4,14 +4,14 @@
|
|||||||
FROM alpine:3.20
|
FROM alpine:3.20
|
||||||
LABEL maintainer="spytheman <spytheman@bulsynt.org>"
|
LABEL maintainer="spytheman <spytheman@bulsynt.org>"
|
||||||
WORKDIR /opt/vlang
|
WORKDIR /opt/vlang
|
||||||
ENV PATH /opt/vlang:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
ENV PATH=/opt/vlang:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
||||||
|
|
||||||
## install development packages
|
## install development packages
|
||||||
RUN apk --no-cache add \
|
RUN apk --no-cache add \
|
||||||
musl-dev libc-dev libc6-compat gcompat \
|
musl-dev libc-dev libc6-compat gcompat \
|
||||||
openssl-dev sqlite-dev mbedtls \
|
openssl-dev sqlite-dev mbedtls \
|
||||||
libuv-dev libev-dev libevent-dev libmemcached-dev \
|
libuv-dev libev-dev libevent-dev libmemcached-dev \
|
||||||
binutils diffutils elfutils pcre strace \
|
binutils diffutils elfutils pcre strace rsync \
|
||||||
libunwind-dev libunwind-static gc gc-dev \
|
libunwind-dev libunwind-static gc gc-dev \
|
||||||
make bash file git upx tmux micro nano nano-syntax \
|
make bash file git upx tmux micro nano nano-syntax \
|
||||||
gcc gdb wasi-sdk \
|
gcc gdb wasi-sdk \
|
||||||
@ -46,9 +46,9 @@ RUN if [[ -z "${USE_LOCAL}" ]] ; then \
|
|||||||
RUN mkdir -p /tmp/v /tmp/v /home/ && chown -Rh 1000:1000 /opt/ /tmp/ /home/
|
RUN mkdir -p /tmp/v /tmp/v /home/ && chown -Rh 1000:1000 /opt/ /tmp/ /home/
|
||||||
## setup runtime environment for v and bash:
|
## setup runtime environment for v and bash:
|
||||||
USER 1000:1000
|
USER 1000:1000
|
||||||
ENV HOME /home
|
ENV HOME=/home
|
||||||
ENV VTMP /tmp/v
|
ENV VTMP=/tmp/v
|
||||||
ENV VMODULES /tmp/vmodules
|
ENV VMODULES=/tmp/vmodules
|
||||||
|
|
||||||
RUN make && v -version && ls -la v && \
|
RUN make && v -version && ls -la v && \
|
||||||
du -b -s . && \
|
du -b -s . && \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user