1
0
Fork 0
mirror of https://github.com/docker/awesome-compose.git synced 2025-04-26 10:43:35 +02:00

Adding simple Traefik example. (#44)

Adding simple Traefik example.

Signed-off-by: lfache <61111030+lfache@users.noreply.github.com>
This commit is contained in:
lfache 2020-04-07 21:32:26 +02:00 committed by GitHub
parent 8e678f132c
commit 3a0f551e33
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 158 additions and 0 deletions

View 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"]