mirror of
https://github.com/dragonheim/gagent.git
synced 2025-04-26 03:28:59 -07:00
fix: Re-initializing after I destroyed the original repository.
This commit is contained in:
parent
5863999e8c
commit
8b54fc32c5
20 changed files with 1359 additions and 0 deletions
20
docker/Dockerfile
Normal file
20
docker/Dockerfile
Normal file
|
@ -0,0 +1,20 @@
|
|||
FROM golang:1.16-alpine3.12 as builder
|
||||
|
||||
WORKDIR /gagent
|
||||
COPY . .
|
||||
RUN apk add --no-cache zeromq-dev build-base git && \
|
||||
go build -o /gagent/bin/gagent gagent/main.go && \
|
||||
strip /gagent/bin/gagent
|
||||
|
||||
|
||||
FROM alpine:3.12
|
||||
LABEL Name="G'Agent" Maintainer="jwells@dragonheim.net" License="MIT License"
|
||||
RUN apk add --no-cache zeromq; mkdir -p -m 0700 /etc/gagent
|
||||
|
||||
COPY --from=builder /gagent/examples/example_gagent.hcl /etc/gagent/gagent.hcl
|
||||
COPY --from=builder /gagent/bin/gagent /usr/bin/
|
||||
|
||||
EXPOSE 35570/tcp
|
||||
VOLUME /etc/gagent
|
||||
|
||||
CMD ["/usr/bin/gagent"]
|
Loading…
Add table
Add a link
Reference in a new issue