add dockerfile

This commit is contained in:
SmileRex
2025-01-24 11:35:48 +03:00
parent 83f10ace90
commit 29942634a6

9
Dockerfile Normal file
View File

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