You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
303 B
Docker

FROM golang:latest
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY ./cmd ./cmd
COPY ./internal ./internal
RUN go build -o /chat ./cmd
FROM gcr.io/distroless/base-debian10
WORKDIR /
COPY --from=0 /chat /chat
ENTRYPOINT ["/chat"]
#docker run --network="host" -e <SECRET> chat #127.0.0.1:8000