Files
my-website-base/Dockerfile
2025-11-26 17:24:20 +02:00

37 lines
787 B
Docker

FROM alpine AS build
RUN apk add --no-cache lua5.4-dev lua5.4-luv make gcc pkgconf util-linux-misc
WORKDIR /build
COPY src ./src/
COPY lib ./lib/
COPY Makefile ./Makefile
COPY mklua ./mklua
# ADD https://git.topcheto.eu/topchetoeu/mklua/releases/download/latest/mklua ./mklua
RUN ln -s /usr/lib/liblua-5.4.so.0 /usr/lib/liblua.so.5.4
RUN ./mklua
RUN make MKLUA=./mklua
# ADD https://git.topcheto.eu/topchetoeu/mklua/releases/download/latest/mklua ./mklua
FROM alpine
EXPOSE 8080
VOLUME /plugins
VOLUME /views
VOLUME /static
VOLUME /config
STOPSIGNAL SIGINT
HEALTHCHECK --interval=30s --start-period=1s CMD curl localhost:8080/.well-known/keepalive | grep "OK"
ENTRYPOINT ./bin/website
WORKDIR /app
RUN apk add --no-cache lua5.4 lua5.4-luv
COPY --from=build ./bin/website .