fix build script
This commit is contained in:
17
Dockerfile
17
Dockerfile
@@ -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" ]
|
||||
|
||||
Reference in New Issue
Block a user