mirror of
https://github.com/postmannen/ctrl.git
synced 2024-12-14 12:37:31 +00:00
2fb43591ce
removed example for no longer existing relay messages cleaned up comments Removed some remaings after REQToFileNACK Implemented env variables for all flags, and removed config flag. Also added use of .env file. removed configuration as input argument from all the loggers replaced logging of new messages in read folder with a logDebug so we don't send those messages to the error kernel
20 lines
360 B
Docker
20 lines
360 B
Docker
# build stage
|
|
FROM golang:1.22-alpine AS build-env
|
|
RUN apk --no-cache add build-base git gcc
|
|
|
|
RUN mkdir -p /build
|
|
COPY ./ /build/
|
|
|
|
WORKDIR /build/cmd/ctrl/
|
|
RUN go version
|
|
RUN go build -o ctrl
|
|
|
|
# final stage
|
|
FROM alpine
|
|
|
|
RUN apk update && apk add curl && apk add nmap
|
|
|
|
WORKDIR /app
|
|
COPY --from=build-env /build/cmd/ctrl/ctrl /app/
|
|
|
|
CMD ["ash","-c","/app/ctrl"]
|