-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (19 loc) · 684 Bytes
/
Dockerfile
File metadata and controls
23 lines (19 loc) · 684 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Start by building the application.
FROM golang:1.26.2-bookworm@sha256:47ce5636e9936b2c5cbf708925578ef386b4f8872aec74a67bd13a627d242b19 AS build
RUN apt-get update && \
apt-get install -y --no-install-recommends \
libvips-dev \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /go/src/manael
COPY . .
RUN go mod download
RUN go build -o /go/bin/manael ./cmd/manael
# Now copy it into our base image.
FROM debian:bookworm-slim@sha256:f9c6a2fd2ddbc23e336b6257a5245e31f996953ef06cd13a59fa0a1df2d5c252
RUN apt-get update && \
apt-get install -y --no-install-recommends \
ca-certificates \
libvips42 \
&& rm -rf /var/lib/apt/lists/*
COPY --from=build /go/bin/manael /
CMD ["/manael"]