-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (24 loc) · 695 Bytes
/
Dockerfile
File metadata and controls
29 lines (24 loc) · 695 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# syntax=docker/dockerfile:1.7
FROM golang:1.25-bookworm AS builder
WORKDIR /src
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
libwebp-dev \
pkg-config \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
COPY go.mod go.sum ./
RUN go mod download
COPY . .
ENV CGO_ENABLED=1
RUN go build -trimpath -ldflags="-s -w" -o /out/webppipe .
FROM debian:bookworm-slim
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
git \
ca-certificates \
libwebp7 \
&& rm -rf /var/lib/apt/lists/*
COPY --from=builder /out/webppipe /usr/local/bin/webppipe
WORKDIR /github/workspace
ENTRYPOINT ["/usr/local/bin/webppipe"]