This commit is contained in:
parent
ab4470eb0b
commit
6bde7ba8e5
1 changed files with 3 additions and 5 deletions
|
|
@ -2,17 +2,15 @@
|
||||||
FROM golang:1-alpine AS build
|
FROM golang:1-alpine AS build
|
||||||
WORKDIR /alps
|
WORKDIR /alps
|
||||||
|
|
||||||
RUN apk add --no-cache git && \
|
RUN apk add --no-cache git make && \
|
||||||
git clone https://git.sr.ht/~migadu/alps . && \
|
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
|
CGO_ENABLED=0 make all
|
||||||
|
|
||||||
# release
|
# release
|
||||||
FROM alpine:3 AS release
|
FROM alpine:3 AS release
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
|
|
||||||
COPY --from=build ./alps/alps ./alps
|
COPY --from=build ./build/alps ./alps
|
||||||
COPY --from=build ./alps/themes/ ./themes
|
|
||||||
COPY --from=build ./alps/plugins/ ./plugins
|
|
||||||
COPY ./init ./init
|
COPY ./init ./init
|
||||||
|
|
||||||
LABEL org.opencontainers.image.source=https://git.nemunai.re/nemunaire/docker-alps
|
LABEL org.opencontainers.image.source=https://git.nemunai.re/nemunaire/docker-alps
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue