Skip to content

Commit

Permalink
/src/tigervnc
Browse files Browse the repository at this point in the history
  • Loading branch information
sam#gemmi-win10 committed Nov 3, 2023
1 parent 845b887 commit c256e05
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions compile/build-alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,23 @@ FROM infrastlabs/x11-base:builder AS base
ENV STATIC=/usr/local/static
RUN apk update; apk add gawk;
# COPY --from=compile ${STATIC}/cache ${STATIC}/cache

COPY ./src /src
RUN chmod +x /src/**/*.sh; \
ls -lh /src/**/*.sh

# --platform=$BUILDPLATFORM
FROM base as tiger
ARG COMPILE_TIGER="yes"
ARG TARGETPLATFORM
ENV TARGETPATH=/usr/local/static/tigervnc
COPY src/tigervnc /build
# COPY src/tigervnc /build
## build.sh: split multi steps, to speed up
RUN mkdir -p $TARGETPATH; \
chmod +x /build/*.sh; \
sh /build/build.sh cache; \
test "yes" != "$COMPILE_TIGER" && exit 0 || echo doMake; \
sh /src/tigervnc/build.sh cache; \
\
# https://blog.csdn.net/sodaloveer/article/details/127727729 #wait并行
sh /build/build.sh b_deps; \
sh /build/build.sh b_tiger; \
test "yes" != "$COMPILE_TIGER" && exit 0 || echo doMake; \
sh /src/tigervnc/build.sh b_deps; \
sh /src/tigervnc/build.sh b_tiger; \
\
xx-verify --static ${TARGETPATH}/bin/Xvnc; \
xx-verify --static ${TARGETPATH}/bin/vncpasswd; \
Expand Down

0 comments on commit c256e05

Please sign in to comment.