Adding simple Traefik example. (#44)
Adding simple Traefik example. Signed-off-by: lfache <61111030+lfache@users.noreply.github.com>
This commit is contained in:
11
traefik-golang/backend/Dockerfile
Normal file
11
traefik-golang/backend/Dockerfile
Normal file
@@ -0,0 +1,11 @@
|
||||
FROM golang:1.13 AS build
|
||||
|
||||
WORKDIR /compose/hello-docker
|
||||
COPY main.go main.go
|
||||
RUN CGO_ENABLED=0 go build -o backend main.go
|
||||
|
||||
FROM scratch
|
||||
COPY --from=build /compose/hello-docker/backend /usr/local/bin/backend
|
||||
CMD ["/usr/local/bin/backend"]
|
||||
|
||||
|
Reference in New Issue
Block a user