mirror of
https://github.com/simon987/feed_archiver.git
synced 2025-12-16 07:39:02 +00:00
Dockerize
This commit is contained in:
14
Dockerfile
Normal file
14
Dockerfile
Normal file
@@ -0,0 +1,14 @@
|
||||
# Build
|
||||
FROM golang:1.14 as go_build
|
||||
WORKDIR /build/
|
||||
|
||||
COPY main.go .
|
||||
COPY go.mod .
|
||||
RUN GOOS=linux CGO_ENABLED=0 go build -a -installsuffix cgo -o feed_archiver .
|
||||
|
||||
FROM scratch
|
||||
|
||||
WORKDIR /root/
|
||||
COPY --from=go_build ["/build/feed_archiver", "/root/"]
|
||||
|
||||
CMD ["/root/feed_archiver"]
|
||||
Reference in New Issue
Block a user