ntfy : better Dockerfile
This commit is contained in:
parent
d8a038ea15
commit
a4c4b74a12
|
@ -1,5 +1,5 @@
|
||||||
#Build stage
|
#Build stage
|
||||||
FROM golang:1.19-alpine3.16 AS build-env
|
FROM docker.io/library/golang:1.19-alpine3.16 AS build-env
|
||||||
|
|
||||||
ARG NTFY_VERSION
|
ARG NTFY_VERSION
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@ RUN git clone --depth=1 -b "${NTFY_VERSION}" https://github.com/binwiederhier/nt
|
||||||
#Build
|
#Build
|
||||||
RUN cd ntfy && make web && make docs && make cli-linux-amd64
|
RUN cd ntfy && make web && make docs && make cli-linux-amd64
|
||||||
|
|
||||||
FROM alpine:3.16
|
FROM docker.io/library/alpine:3.16
|
||||||
LABEL maintainer="contact@garbaye.fr"
|
LABEL maintainer="contact@garbaye.fr"
|
||||||
|
|
||||||
EXPOSE 80/tcp
|
EXPOSE 80/tcp
|
||||||
|
@ -33,5 +33,3 @@ USER ntfy
|
||||||
ENTRYPOINT ["ntfy"]
|
ENTRYPOINT ["ntfy"]
|
||||||
|
|
||||||
COPY --from=build-env /go/ntfy/dist/ntfy_linux_amd64_linux_amd64_v1/ntfy /usr/bin/ntfy
|
COPY --from=build-env /go/ntfy/dist/ntfy_linux_amd64_linux_amd64_v1/ntfy /usr/bin/ntfy
|
||||||
|
|
||||||
# podman run --rm -p 3333:3333 -it localhost/ntfy:v1.29.0 serve --listen-http :3333
|
|
||||||
|
|
Loading…
Reference in a new issue