This repository has been archived by the owner on Feb 13, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 253
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
2180664
commit 765cd18
Showing
1 changed file
with
9 additions
and
7 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 |
---|---|---|
@@ -1,17 +1,19 @@ | ||
FROM golang:1.14.2-alpine3.11 as build | ||
|
||
LABEL dev.ktbs.project.name="teler" | ||
LABEL description="Real-time HTTP Intrusion Detection" | ||
LABEL version="0.0.1-dev3" | ||
LABEL repository="https://github.com/kitabisa/teler" | ||
LABEL maintainer="dwisiswant0" | ||
|
||
RUN apk --no-cache add git | ||
ENV GO111MODULE on | ||
RUN go get ktbs.dev/teler/cmd/teler; exit 0 | ||
RUN mkdir -p /app | ||
WORKDIR /app | ||
COPY ./go.mod . | ||
RUN go mod download | ||
|
||
COPY . . | ||
RUN go build -o ./bin/teler ./cmd/teler | ||
|
||
FROM alpine:latest | ||
RUN apk --no-cache add ca-certificates | ||
COPY --from=build /go/bin/teler /bin/teler | ||
|
||
COPY --from=build /app/bin/teler /bin/teler | ||
ENV HOME / | ||
ENTRYPOINT ["/bin/teler"] |