Compare commits
2 Commits
73515f2183
...
a66d7b9be9
Author | SHA1 | Date | |
---|---|---|---|
a66d7b9be9 | |||
ec4a1e8294 |
11
Dockerfile
Normal file
11
Dockerfile
Normal 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"]
|
Loading…
Reference in New Issue
Block a user