Compare commits

..

2 Commits

Author SHA1 Message Date
a66d7b9be9 Add Dockerfile 2022-04-20 02:41:57 +02:00
ec4a1e8294 Fix go.mod 2022-04-20 02:39:05 +02:00
2 changed files with 12 additions and 1 deletions

11
Dockerfile Normal file
View File

@ -0,0 +1,11 @@
FROM golang:alpine as builder
WORKDIR /app
COPY go.mod .
COPY go.sum .
RUN go mod download
COPY . .
RUN go build -o minipaste minipaste.go
FROM alpine:latest
COPY --from=builder /app/minipaste /usr/bin/minipaste
CMD ["/usr/bin/minipaste"]

2
go.mod
View File

@ -4,4 +4,4 @@ go 1.18
require github.com/google/uuid v1.3.0 require github.com/google/uuid v1.3.0
require github.com/go-chi/chi/v5 v5.0.7 // indirect require github.com/go-chi/chi/v5 v5.0.7