-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
710201c
commit 2192ab0
Showing
1 changed file
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
FROM golang:1.16 AS build | ||
|
||
WORKDIR /go/src/github.com/danielunderwood/log2http | ||
COPY *.go ./ | ||
COPY go.* ./ | ||
RUN go build -v ./... | ||
|
||
FROM debian:11-slim | ||
WORKDIR /app | ||
COPY --from=build /go/src/github.com/danielunderwood/log2http/log2http /app | ||
# Install ca-certificates so TLS can be verified | ||
RUN apt-get update && apt-get install -y ca-certificates && apt-get clean && rm -rf /var/lib/apt/lists/* | ||
CMD ["/app/log2http"] |