fix build script

This commit is contained in:
2025-11-27 14:47:17 +02:00
parent 2d97f02929
commit fc2019680a
3 changed files with 13 additions and 14 deletions

View File

@@ -1,32 +1,31 @@
FROM alpine AS build
RUN apk add --no-cache lua5.4-dev lua5.4-luv make gcc pkgconf util-linux-misc
RUN apk add --no-cache lua5.4-dev lua5.4-luv build-base pkgconf util-linux-misc
WORKDIR /build
COPY src ./src/
COPY lib ./lib/
COPY Makefile ./Makefile
COPY deps ./deps
RUN ln -s /usr/lib/liblua-5.4.so.0 /usr/lib/liblua.so.5.4
RUN make
RUN make LUA=lua5.4
FROM alpine
EXPOSE 8080
VOLUME /plugins
VOLUME /views
VOLUME /static
VOLUME /config
VOLUME /data
STOPSIGNAL SIGINT
HEALTHCHECK --interval=30s --start-period=1s CMD curl localhost:8080/.well-known/keepalive | grep "OK"
ENTRYPOINT ./bin/website
WORKDIR /app
WORKDIR /
RUN apk add --no-cache lua5.4 lua5.4-luv
COPY --from=build ./bin/website .
COPY --from=build /build/bin/website .
CMD [ "./website", "./data/config.lua" ]