This repository has been archived on 2026-05-13. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
educode-controller/Dockerfile
starryskymeow 9cf6b6777a add Dockerfile
2025-07-05 06:23:04 +08:00

22 lines
300 B
Docker

FROM golang:1.24.0-alpine AS builder
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o /app/manager ./cmd/manager
FROM alpine:latest
WORKDIR /root/
COPY --from=builder /app/manager .
EXPOSE 8080
CMD ["./manager"]