diff options
| -rw-r--r-- | Dockerfile | 15 |
1 files changed, 11 insertions, 4 deletions
@@ -2,14 +2,21 @@ FROM alpine:latest AS builder COPY . /app -RUN apk --no-cache add libc-dev git gcc make openssl-dev libzip lua5.4 zlib-dev gettext-dev && \ - cd /app && \ - git submodule update --init --recursive && \ - make NO_REGEX=NeedsStartEnd install +WORKDIR /app + +RUN apk --no-cache add git && \ + git submodule update --init --recursive + +RUN apk --no-cache add libc-dev git gcc make \ + openssl-dev libzip lua5.4-dev zlib-dev \ + musl-libintl gettext-static + +RUN make NO_REGEX=NeedsStartEnd LUA_PKGCONFIG=lua5.4 install FROM alpine:latest AS runtime COPY --from=builder /var/www/htdocs/cgit /usr/share/webapps/cgit +COPY --from=builder /usr/local/lib/cgit/filters /usr/local/lib/cgit/filters RUN apk --no-cache add lighttpd |
