Compare commits
1 Commits
master
...
fc2019680a
| Author | SHA1 | Date | |
|---|---|---|---|
| fc2019680a |
17
Dockerfile
17
Dockerfile
@@ -1,32 +1,31 @@
|
|||||||
FROM alpine AS build
|
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
|
WORKDIR /build
|
||||||
|
|
||||||
COPY src ./src/
|
COPY src ./src/
|
||||||
COPY lib ./lib/
|
COPY lib ./lib/
|
||||||
COPY Makefile ./Makefile
|
COPY Makefile ./Makefile
|
||||||
|
COPY deps ./deps
|
||||||
|
|
||||||
RUN ln -s /usr/lib/liblua-5.4.so.0 /usr/lib/liblua.so.5.4
|
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
|
FROM alpine
|
||||||
|
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
|
|
||||||
VOLUME /plugins
|
VOLUME /data
|
||||||
VOLUME /views
|
|
||||||
VOLUME /static
|
|
||||||
VOLUME /config
|
|
||||||
|
|
||||||
STOPSIGNAL SIGINT
|
STOPSIGNAL SIGINT
|
||||||
|
|
||||||
HEALTHCHECK --interval=30s --start-period=1s CMD curl localhost:8080/.well-known/keepalive | grep "OK"
|
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
|
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" ]
|
||||||
|
|||||||
8
Makefile
8
Makefile
@@ -42,15 +42,15 @@ compile_flags.txt:
|
|||||||
printf -- '$(foreach v,$(CCARGS) $(LDARGS),\n$v)' > compile_flags.txt
|
printf -- '$(foreach v,$(CCARGS) $(LDARGS),\n$v)' > compile_flags.txt
|
||||||
|
|
||||||
$(OUTPUT): $(LIBS) $(MKLUA_OUT) $(SOURCES) | $(dir $(OUTPUT))
|
$(OUTPUT): $(LIBS) $(MKLUA_OUT) $(SOURCES) | $(dir $(OUTPUT))
|
||||||
$(CC) $(CCARGS) $(LDARGS) $^ -o $@
|
$(CC) $(CCARGS) $^ $(LDARGS) -o $@
|
||||||
|
|
||||||
$(MKLUA_OUT): $(DEPS) | $(dir $(MKLUA_OUT)) $(MKLUA)
|
$(MKLUA_OUT): $(DEPS) | $(dir $(MKLUA_OUT)) $(MKLUA)
|
||||||
$(MKLUA) $(MKLUA_FLAGS) $(MKLUA_ENTRY) -o $@
|
$(MKLUA) $(MKLUA_FLAGS) $(MKLUA_ENTRY) -o $@
|
||||||
|
|
||||||
deps/mklua/mklua:
|
deps/mklua/Makefile:
|
||||||
|
|
||||||
$(MKLUA):
|
|
||||||
git submodule update --init deps/mklua
|
git submodule update --init deps/mklua
|
||||||
|
|
||||||
|
$(MKLUA): deps/mklua/Makefile
|
||||||
make -C deps/mklua
|
make -C deps/mklua
|
||||||
%/:
|
%/:
|
||||||
mkdir -p $@
|
mkdir -p $@
|
||||||
|
|||||||
2
deps/mklua
vendored
2
deps/mklua
vendored
Submodule deps/mklua updated: 318928ddbc...0c05556eb1
Reference in New Issue
Block a user