-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (25 loc) · 725 Bytes
/
Dockerfile
File metadata and controls
35 lines (25 loc) · 725 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
30
31
32
33
34
35
FROM golang:1.24.1-bullseye AS builder
RUN mkdir /build
ADD . /build/
WORKDIR /build
RUN make build
FROM node:24-slim AS ui-builder
RUN mkdir /build
WORKDIR /build
ADD ui/package*.json /build/ui/
RUN npm ci --prefix ui/
ADD . /build/
RUN npm run build --prefix ui/
FROM debian:trixie-slim
RUN apt-get update \
&& apt-get -y install curl gnupg2 git podman dumb-init \
&& rm -rf /var/lib/apt/lists/*
RUN useradd --create-home --shell /bin/bash rootless
RUN mkdir -p /home/rootless/src
WORKDIR /home/rootless/src
USER rootless
COPY --from=builder /build/bin/ebuild ./
COPY --from=builder /build/targets.json ./
COPY --from=ui-builder /build/static ./static
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
CMD ["bash"]