aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorterminaldweller <devi@terminaldweller.com>2025-01-14 21:13:58 +0000
committerterminaldweller <devi@terminaldweller.com>2025-01-14 21:13:58 +0000
commit233b5b943ac5dbdd54f4418cda74fa037d8cf6a2 (patch)
tree7998cace15d0e90df120cd7e2815b700fb05af20 /Dockerfile
parentfixed a typo in the subject name for the self-signed cert (diff)
downloadicanhazallips-main.tar.gz
icanhazallips-main.zip
using nginx as reverse proxy nowHEADmain
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile11
1 files changed, 2 insertions, 9 deletions
diff --git a/Dockerfile b/Dockerfile
index d41862a..20386f0 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,4 +1,4 @@
-FROM alpine:3.17 as builder
+FROM alpine:3.21 as builder
ENV GOPROXY=https://goproxy.io
RUN apk update && apk upgrade
RUN apk add go git
@@ -8,13 +8,6 @@ RUN cd /icanhazallips && go mod download
COPY *.go /icanhazallips/
RUN cd /icanhazallips && go build
-FROM alpine:3.17 as certbuilder
-RUN apk add openssl
-WORKDIR /certs
-RUN openssl req -nodes -new -x509 -subj="/CN=icanhazallips.terminaldweller.com" -keyout server.key -out server.cert
-
-# FROM gcr.io/distroless/static-debian11
-FROM alpine:3.17
-COPY --from=certbuilder /certs /certs
+FROM alpine:3.21
COPY --from=builder /icanhazallips/icanhazallips /icanhazallips/icanhazallips
ENTRYPOINT ["/icanhazallips/icanhazallips"]