mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 11:11:30 -04:00
Merge branch 'improve-go-dependecies-caching-docker' into 'main'
Improve dependencies caching on Docker See merge request tpo/anti-censorship/pluggable-transports/snowflake!416
This commit is contained in:
commit
2109001601
1 changed files with 5 additions and 2 deletions
|
@ -1,10 +1,13 @@
|
|||
FROM docker.io/library/golang:latest AS build
|
||||
|
||||
|
||||
ADD . /app
|
||||
WORKDIR /app
|
||||
COPY go.mod go.sum ./
|
||||
RUN go mod download
|
||||
|
||||
COPY . ./
|
||||
|
||||
WORKDIR /app/proxy
|
||||
RUN go get
|
||||
RUN CGO_ENABLED=0 go build -o proxy -ldflags '-extldflags "-static" -w -s' .
|
||||
|
||||
FROM containers.torproject.org/tpo/tpa/base-images/debian:bookworm as debian-base
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue