jokyo3 commited on
Commit
c003875
·
verified ·
1 Parent(s): e9e26ff

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -0
Dockerfile CHANGED
@@ -7,6 +7,9 @@ WORKDIR /go/src/app
7
  # Copy the local package files to the container's workspace
8
  COPY . .
9
 
 
 
 
10
  # Build the Go application
11
  RUN go build -o main .
12
 
 
7
  # Copy the local package files to the container's workspace
8
  COPY . .
9
 
10
+ # Initialize a Go module
11
+ RUN go mod init my-app
12
+
13
  # Build the Go application
14
  RUN go build -o main .
15