Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.

Commit

Permalink
🐳 Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
dwisiswant0 committed Nov 2, 2020
1 parent 2180664 commit 765cd18
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions Dockerfile
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"]

0 comments on commit 765cd18

Please # to comment.