Updated webpage

This commit is contained in:
2021-03-21 09:13:33 +00:00
parent 7ba7f8cb5b
commit f5a356773a
5 changed files with 101 additions and 70 deletions

View File

@@ -1,4 +1,4 @@
FROM golang:alpine AS builder
FROM golang:1.16-alpine AS builder
RUN apk update && apk add --no-cache git && apk add -U --no-cache ca-certificates
WORKDIR /app/
ADD go.mod go.sum ./
@@ -7,10 +7,7 @@ ADD . .
RUN GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags="-w -s" -o tweetsvg main.go
FROM scratch
WORKDIR /app/
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=builder /app/tweetsvg /app/tweetsvg
ADD tweet.svg.tmpl index.html ./
ENTRYPOINT ["/app/tweetsvg"]