Update Dockerfile: Add Go module initialization
This commit is contained in:
+3
-1
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user