Optimize Dockerfile for caching

This commit is contained in:
Yun Zheng Hu
2024-10-03 09:32:31 +00:00
parent 57af79372b
commit 3aa16279a4

View File

@@ -1,10 +1,9 @@
FROM golang:alpine
COPY . /app
RUN apk add --no-cache make build-base libpcap-dev openssh-client tcpdump
WORKDIR /app
RUN apk add --no-cache make build-base libpcap-dev openssh-client tcpdump
COPY . /app
RUN go mod download
RUN go build ./cmd/pcap-broker