Commit c16972b 1 parent b738f58 commit c16972b Copy full SHA for c16972b
File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -12,16 +12,16 @@ COPY . .
12
12
# RUN go build
13
13
# Build
14
14
# RUN CGO_ENABLED=0 GOOS=linux go build -o main .
15
- RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o app .
15
+ RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o FN-Go-Basic-Services .
16
16
17
17
FROM alpine:latest as runtime
18
18
RUN apk --no-cache add ca-certificates
19
19
WORKDIR /root/
20
20
21
- COPY --from=builder /app/app .
21
+ COPY --from=builder /app/FN-Go-Basic-Services .
22
22
# COPY . FN-Go-Basic-Services
23
23
24
- CMD ["./app " ]
24
+ CMD ["./FN-Go-Basic-Services " ]
25
25
26
26
# Optional:
27
27
# To bind to a TCP port, runtime parameters must be supplied to the docker command.
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ func main() {
20
20
})
21
21
22
22
e .GET ("/health" , func (c echo.Context ) error {
23
- return c .String (http .StatusOK , "Health is OK !!" )
23
+ return c .String (http .StatusOK , "Health is OK1234 !!" )
24
24
})
25
25
26
26
httpPort := os .Getenv ("PORT" )
You can’t perform that action at this time.
0 commit comments