add ci
All checks were successful
Create and publish a Docker image 🚀 / build-and-push-image (push) Successful in 2m20s

This commit is contained in:
Smile Rex
2026-03-03 20:05:28 +03:00
parent 7d44a07996
commit ff429b993e
2 changed files with 56 additions and 0 deletions

10
Dockerfile Normal file
View File

@@ -0,0 +1,10 @@
FROM golang:alpine AS builder
WORKDIR /app
COPY . .
RUN go build -o main .
FROM alpine:latest
WORKDIR /app
COPY --from=builder /app/main /app/main
EXPOSE 8080
CMD ["/app/main"]