Possible fix

main
Jef Roosens 2022-01-22 22:58:09 +01:00
parent 4c42838c93
commit 3414f32718
Signed by untrusted user: Jef Roosens
GPG Key ID: B580B976584B5F30
1 changed files with 7 additions and 6 deletions

View File

@ -6,8 +6,6 @@ ENV VVV /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
ENV VFLAGS -cc gcc ENV VFLAGS -cc gcc
RUN echo "$TARGETPLATFORM" && exit 1
RUN mkdir -p /opt/vlang && \ RUN mkdir -p /opt/vlang && \
ln -s /opt/vlang/v /usr/bin/v && \ ln -s /opt/vlang/v /usr/bin/v && \
apk --no-cache add \ apk --no-cache add \
@ -18,10 +16,13 @@ RUN mkdir -p /opt/vlang && \
sqlite-static sqlite-dev \ sqlite-static sqlite-dev \
libx11-dev glfw-dev freetype-dev \ libx11-dev glfw-dev freetype-dev \
libarchive-static libarchive-dev \ libarchive-static libarchive-dev \
diffutils && \ diffutils
# yes yes I know this is amd64, it's okay
RUN if [ "$TARGETPLATFORM" = 'linux/amd64' ]; then \
wget -O /usr/local/bin/mc https://dl.min.io/client/mc/release/linux-amd64/mc && \ wget -O /usr/local/bin/mc https://dl.min.io/client/mc/release/linux-amd64/mc && \
chmod +x /usr/local/bin/mc chmod +x /usr/local/bin/mc ; \
fi
COPY . /vlang-local COPY . /vlang-local