mirror of
https://github.com/kataras/iris.git
synced 2025-12-23 21:07:03 +00:00
example: sessions: scale out using redis
Former-commit-id: a811648e0bdf83c289656426f8ba67d785b7d5cc
This commit is contained in:
16
_examples/sessions/database/redis/Dockerfile
Normal file
16
_examples/sessions/database/redis/Dockerfile
Normal file
@@ -0,0 +1,16 @@
|
||||
FROM golang:latest AS builder
|
||||
RUN apt-get update
|
||||
WORKDIR /go/src/app
|
||||
ENV GO111MODULE=on \
|
||||
CGO_ENABLED=0 \
|
||||
GOOS=linux \
|
||||
GOARCH=amd64
|
||||
# Caching go modules and build the binary.
|
||||
COPY go.mod .
|
||||
RUN go mod download
|
||||
COPY . .
|
||||
RUN go install
|
||||
|
||||
FROM scratch
|
||||
COPY --from=builder /go/bin/app .
|
||||
ENTRYPOINT ["./app"]
|
||||
Reference in New Issue
Block a user