FROM golang:1.25-alpine AS build

WORKDIR /src
COPY . .
RUN go build -o /out/backend ./cmd/api

FROM alpine:3.22
RUN apk add --no-cache tzdata
WORKDIR /app
COPY --from=build /out/backend /usr/local/bin/backend
EXPOSE 8080
ENTRYPOINT ["/usr/local/bin/backend"]
