Files
yule/Dockerfile
Atridad Lahiji 8f1e782ed0
All checks were successful
Docker Deploy / build-and-push (push) Successful in 2m29s
Oops
2025-12-23 10:42:21 -07:00

22 lines
292 B
Docker

FROM golang:1.25-alpine AS builder
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -o yule main.go
FROM alpine:latest
RUN apk --no-cache add ca-certificates
WORKDIR /app
COPY --from=builder /app/yule .
EXPOSE 2222
CMD ["./yule"]