Files
sprintpadawan/Dockerfile
T
atridad 16bed1b8c0 First pass at basic functionality.
This PR introduces the beginnings of Sprint Padawan.

Reviewed-on: #1
2026-05-02 02:01:53 -06:00

22 lines
418 B
Docker

# Build stage
FROM golang:alpine AS builder
RUN apk add --no-cache build-base
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=1 GOOS=linux go build -o sprintpadawan main.go
# Runtime stage
FROM alpine:latest
RUN apk --no-cache add ca-certificates tzdata
WORKDIR /app
ENV ROOT_DIR=/data
RUN mkdir -p /data
COPY --from=builder /app/sprintpadawan .
EXPOSE 8080
CMD ["./sprintpadawan"]