-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile.dev
More file actions
33 lines (24 loc) · 973 Bytes
/
Dockerfile.dev
File metadata and controls
33 lines (24 loc) · 973 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
ARG ENABLE_PROXY=false
FROM node:22 AS node_builder
ARG TARGETARCH
WORKDIR /app
RUN apt update \
&& apt install -y git \
&& git clone --depth 1 --branch main https://github.com/api7/adc.git \
&& cd adc \
&& corepack enable pnpm \
&& pnpm install \
&& NODE_ENV=production npx nx build cli \
&& node --experimental-sea-config apps/cli/node-sea.json \
&& npx ts-node apps/cli/scripts/download-node.ts \
&& npx postject ./node-binary/linux-${TARGETARCH} NODE_SEA_BLOB sea-prep.blob --sentinel-fuse NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2 \
&& mv ./node-binary/linux-${TARGETARCH} /bin/adc \
&& rm -rf /app
FROM debian:bullseye-slim
ARG TARGETARCH
WORKDIR /app
COPY --from=node_builder /bin/adc /bin/adc
COPY ./bin/apisix-ingress-controller_${TARGETARCH} ./apisix-ingress-controller
COPY ./config/samples/config.yaml ./conf/config.yaml
ENTRYPOINT ["/app/apisix-ingress-controller"]
CMD ["-c", "/app/conf/config.yaml"]