FROM golang:1.23.1

WORKDIR /app

COPY go.mod go.sum ./

COPY config.go config.yml database.go flexradio.go spot.go main.go TCPClient.go TCPServer.go utils.go log.go xml.go ./
COPY templates/* .

RUN go build -o bin main.go

ENTRYPOINT ["/app/bin"]