Initial commit, taken from https://github.com/AlphaJack/docker-alps
This commit is contained in:
commit
f2ddca44b1
4 changed files with 131 additions and 0 deletions
24
Dockerfile
Normal file
24
Dockerfile
Normal 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"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue