This commit is contained in:
nemunaire 2025-01-05 21:09:26 +01:00
commit f2ddca44b1
4 changed files with 131 additions and 0 deletions

24
Dockerfile Normal file
View file

@ -0,0 +1,24 @@
# build
FROM golang:1-alpine AS build
WORKDIR /alps
RUN apk add --no-cache git && \
git clone https://git.sr.ht/~migadu/alps . && \
CGO_ENABLED=0 go build -tags netgo -v -a -ldflags '-extldflags "-static"' -o "alps" cmd/alps/main.go
# release
FROM alpine:3 AS release
WORKDIR /
COPY --from=build ./alps/alps ./alps
COPY --from=build ./alps/themes/ ./themes
COPY --from=build ./alps/plugins/ ./plugins
COPY ./init ./init
LABEL org.opencontainers.image.source=https://git.nemunai.re/nemunaire/docker-alps
EXPOSE 1323
HEALTHCHECK CMD wget --spider http://127.0.0.1:1323/
ENTRYPOINT ["/init"]