-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
executable file
·38 lines (28 loc) · 866 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
FROM golang:1.22 as builder
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
RUN apt-get update && apt-get install -y libvips-dev
COPY . .
RUN CGO_ENABLED=1 GOOS=linux go build -o ./build/main ./cmd/
ENV GIN_MODE=release
ENV ENV="dev"
ENV SHUTDOWN_TIMEOUT="10s"
ENV JWT_SECRET="some_hard_secret"
ENV HTTP_ADDRESS="localhost:5000"
ENV HTTP_TIMEOUT="4s"
ENV HTTP_IDLE_TIMEOUT="4s"
ENV USER_SERVICE_ADDRESS="localhost:44044"
ENV USER_SERVICE_TIMEOUT="3s"
ENV USER_SERVICE_RETRIES_COUNT=3
ENV CLUB_SERVICE_ADDRESS="localhost:44045"
ENV CLUB_SERVICE_TIMEOUT="3s"
ENV CLUB_SERVICE_RETRIES_COUNT=3
ENV EVENT_SERVICE_ADDRESS="localhost:44046"
ENV EVENT_SERVICE_TIMEOUT="3s"
ENV EVENT_SERVICE_RETRIES_COUNT=3
ENV AWS_REGION="us-east-1"
ENV AWS_ACCESS_KEY_ID="access_key_id"
ENV AWS_SECRET_ACCESS_KEY="secret_access_key"
EXPOSE 5000
ENTRYPOINT ["./build/main"]