forked from stellar/stellar-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (23 loc) · 1017 Bytes
/
Copy pathDockerfile
File metadata and controls
32 lines (23 loc) · 1017 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
FROM ubuntu:26.04 AS build
LABEL maintainer="SDF Ops Team <ops@stellar.org>"
WORKDIR /app
ENV DEBIAN_FRONTEND=noninteractive
ENV INLINE_RUNTIME_CHUNK=false
RUN apt-get update && apt-get install --no-install-recommends -y gpg curl git make ca-certificates apt-transport-https && \
curl -sSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key|gpg --dearmor >/etc/apt/trusted.gpg.d/nodesource-key.gpg && \
echo "deb https://deb.nodesource.com/node_24.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list && \
apt-get update && apt-get install -y nodejs libatomic1 && apt-get clean
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME/bin:$PATH"
RUN corepack enable
COPY . /app/
RUN pnpm ci
RUN du -sh /app/*
RUN pnpm rpcspec:build --no-minify
RUN pnpm stellar-cli:build --no-minify --cli-ref=main
RUN pnpm stellar-cli:fix-links
ENV NODE_OPTIONS="--max-old-space-size=4096"
RUN pnpm build --no-minify
FROM nginx:1.31
COPY --from=build /app/build/ /usr/share/nginx/html/
COPY nginx /etc/nginx/