aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorterminaldweller <devi@terminaldweller.com>2023-12-31 04:25:17 +0000
committerterminaldweller <devi@terminaldweller.com>2023-12-31 04:25:17 +0000
commit553d9f5136c3bd255eeee5e4be28ffe518bdf309 (patch)
tree87a5e9bded207af7964a1f700fc3c3d5d1ba471e /Dockerfile
parentwip (diff)
downloadsms-webhook-553d9f5136c3bd255eeee5e4be28ffe518bdf309.tar.gz
sms-webhook-553d9f5136c3bd255eeee5e4be28ffe518bdf309.zip
WIP
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Dockerfile b/Dockerfile
index e014703..86c18bb 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,4 +1,4 @@
-FROM alpine:3.18 as builder
+FROM alpine:3.19 as builder
RUN apk update && apk upgrade && \
apk add go git
RUN git clone https://github.com/terminaldweller/sms-webhook
@@ -9,12 +9,12 @@ RUN go mod download
ENV CGO_ENABLED=0
RUN go build
-FROM alpine:3.18 as certbuilder
+FROM alpine:3.19 as certbuilder
RUN apk add openssl
WORKDIR /certs
RUN openssl req -nodes -new -x509 -subj="/C=US/ST=Denial/L=springfield/O=Dis/CN=sms-webhook" -keyout server.key -out server.cert
-FROM alpine:3.18
+FROM alpine:3.19
COPY --from=certbuilder /certs /certs
COPY --from=builder /sms-webhook/sms-webhook /sms-webhook/
ENTRYPOINT ["/sms-webhook/sms-webhook"]