Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- 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 |
|