mirror of
https://github.com/gravitl/netmaker.git
synced 2026-04-23 00:17:10 +08:00
105b7dfc1c
Replace `apk update` and `--update` flags with `--no-cache` across Dockerfiles to improve consistency and eliminate unnecessary cache files. This change reduces image size and ensures up-to-date package indices without leaving temporary data. It also aligns with best practices recommended for Alpine-based Docker images.
7 lines
124 B
Plaintext
7 lines
124 B
Plaintext
FROM golang:1.23.0-alpine3.20
|
|
ARG version
|
|
RUN apk add --no-cache build-base
|
|
WORKDIR /app
|
|
COPY go.* ./
|
|
RUN go mod download
|