docker-alps/Dockerfile
Pierre-Olivier Mercier 3b3e34edda
All checks were successful
continuous-integration/drone/push Build is passing
Ready for the new alps repository
2026-07-02 18:00:13 +08:00

22 lines
450 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/build/alps ./alps
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"]