Skip to content

Commit 8c93fd7

Browse files
author
andersh
committed
fix: copy
1 parent c2dfdaf commit 8c93fd7

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

Dockerfile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
# Build stage
22
FROM golang:1.22-alpine AS builder
3+
# Set necessary environmet variables needed for our image
4+
ENV GO111MODULE=on \
5+
CGO_ENABLED=0 \
6+
GOOS=linux
37
WORKDIR /app
4-
COPY go.mod go.sum ./
8+
COPY go.mod .
9+
COPY go.sum .
510
RUN go mod download
611
COPY . .
712
ARG VERSION=dev
8-
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags "-X main.version=${VERSION}" -o web_proxy_cache .
13+
RUN go build -ldflags "-X main.version=${VERSION}" -o web_proxy_cache .
914

1015
# Final image
1116
FROM alpine:3.19

0 commit comments

Comments
 (0)