1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-22 04:17:03 +00:00

add a README tutorial on the mvc/overview example

Former-commit-id: c563c4f1ffa98705829e14b189a6976c3a6aa898
This commit is contained in:
Gerasimos (Makis) Maropoulos
2020-06-22 17:49:45 +03:00
parent 29d98ac281
commit 9922265454
7 changed files with 469 additions and 8 deletions

View File

@@ -0,0 +1,17 @@
# docker build -t app .
# docker run --rm -it -p 8080:8080 app:latest
FROM golang:latest AS builder
RUN apt-get update
ENV GO111MODULE=on \
CGO_ENABLED=0 \
GOOS=linux \
GOARCH=amd64
WORKDIR /go/src/app
COPY go.mod .
RUN go mod download
COPY . .
RUN go install
FROM scratch
COPY --from=builder /go/bin/app .
ENTRYPOINT ["./app"]