Skip to content

Commit

Permalink
Added: Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
danielunderwood committed Feb 26, 2022
1 parent 710201c commit 2192ab0
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Dockerfile
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"]

0 comments on commit 2192ab0

Please sign in to comment.