Spaces:
Build error
Build error
| FROM golang:1.21-alpine AS build | |
| WORKDIR /app | |
| RUN apk add --no-cache git | |
| COPY . . | |
| RUN go mod tidy && go build -o server main.go | |
| FROM alpine:3.18 | |
| WORKDIR /app | |
| COPY --from=build /app/server . | |
| ENV PORT=7860 | |
| EXPOSE 7860 | |
| CMD ["./server"] | |