docker file

This commit is contained in:
thuanle
2024-07-14 00:22:21 +07:00
parent 83389a4569
commit 14a4484c6c
2 changed files with 3 additions and 2 deletions

View File

@@ -12,7 +12,7 @@ FROM go-mod-cache AS build
WORKDIR /app WORKDIR /app
COPY internal . COPY . .
RUN go build . -o ipinfo RUN go build . -o ipinfo

View File

@@ -7,4 +7,5 @@ services:
volumes: volumes:
- ./data:/app/data - ./data:/app/data
environment: environment:
- GIN_TRUSTED_PROXY_IP=127.0.0.1 - GIN_TRUSTED_PROXY_IP=127.0.0.1
- TZ=Asia/Ho_Chi_Minh