Update Dockerfile: Add Go module initialization

This commit is contained in:
mustafalasheen
2025-04-21 00:03:13 +02:00
parent 7d9d007e98
commit 348e853ffa
+3 -1
View File
@@ -4,7 +4,9 @@ WORKDIR /app
COPY . .
RUN go build -o main .
# Initialize Go module and build
RUN go mod init ghaymah-go-starter && \
go build -o main .
EXPOSE 8080