docker-alps/Dockerfile
Pierre-Olivier Mercier 5c36073f9d
Some checks are pending
continuous-integration/drone/push Build is running
Use included Makefile
2026-07-02 16:30:00 +08:00

24 lines
531 B
Docker

# build
FROM golang:1-alpine AS build
WORKDIR /alps
RUN apk add --no-cache git make && \
git clone https://git.sr.ht/~migadu/alps . && \
CGO_ENABLED=0 make all
# 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"]