mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 11:11:30 -04:00
Improve dependencies caching on Docker
This commit is contained in:
parent
8ae1994e4b
commit
a16403dcd1
1 changed files with 6 additions and 2 deletions
|
@ -1,10 +1,14 @@
|
|||
FROM docker.io/library/golang:latest AS build
|
||||
|
||||
|
||||
ADD . /app
|
||||
COPY go.mod /app/go.mod
|
||||
COPY go.sum /app/go.sum
|
||||
WORKDIR /app/
|
||||
RUN go mod download
|
||||
|
||||
COPY . /app
|
||||
|
||||
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