Docker: proxy args for go mod download (temporary)

This commit is contained in:
2026-06-23 20:53:58 +03:30
parent 7d03a4d8fc
commit f6d6e994aa
2 changed files with 11 additions and 1 deletions

View File

@@ -1,6 +1,12 @@
FROM golang:1.26.4-alpine AS builder
WORKDIR /src
ARG HTTP_PROXY
ARG HTTPS_PROXY
ENV HTTP_PROXY=${HTTP_PROXY}
ENV HTTPS_PROXY=${HTTPS_PROXY}
COPY go.mod go.sum ./
RUN go mod download
COPY . .

View File

@@ -1,6 +1,10 @@
services:
worktime-bot:
build: .
build:
context: .
args:
HTTP_PROXY: http://192.168.100.2:10808
HTTPS_PROXY: http://192.168.100.2:10808
env_file:
- .env
environment: