us-dop-bot/Dockerfile.old
maximo tejeda ceb402a65d
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 5s
INITIAL COMMIT
2024-07-21 11:40:07 -04:00

15 lines
310 B
Docker

FROM golang:latest as builder
WORKDIR /app
COPY . .
RUN go mod download && go mod tidy
RUN go build -o ./bin/us-dop-bot ./cmd/bot
FROM debian:unstable-slim
RUN apt-get update
RUN apt-get install -y ca-certificates
COPY --from=builder /app/bin/us-dop-bot /app/us-dop-bot
WORKDIR /app
CMD ["/app/us-dop-bot"]