-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
48 lines (36 loc) · 1.08 KB
/
Dockerfile
File metadata and controls
48 lines (36 loc) · 1.08 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
FROM rust:latest AS rust-builder
RUN apt-get update && apt-get install -y \
python3.13 \
python3.13-venv \
python3.13-dev \
libpython3.13-dev \
pkg-config \
&& rm -rf /var/lib/apt/lists/*
RUN ln -sf /usr/bin/python3.13 /usr/bin/python \
&& ln -sf /usr/bin/python3.13 /usr/bin/python3
ENV PYO3_PYTHON=/usr/bin/python3.13
WORKDIR /usr/src/app
COPY . .
RUN cargo build --release
FROM node:20-alpine AS node-builder
WORKDIR /app
COPY solid-interface-funpaybors/ .
RUN npm ci && npm run build
FROM debian:trixie-slim
RUN apt-get update && apt-get install -y \
python3.13 \
python3.13-dev \
python3.13-venv \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
RUN ln -sf /usr/bin/python3.13 /usr/bin/python \
&& ln -sf /usr/bin/python3.13 /usr/bin/python3 \
&& ldconfig
RUN mkdir -p /app/plugins /app/html
COPY --from=rust-builder /usr/src/app/target/release/FunPayBORS /app/
COPY --from=rust-builder /usr/src/app/config.json /app/
COPY --from=node-builder /app/dist/ /app/html/
WORKDIR /app
EXPOSE 58899
ENTRYPOINT ["./FunPayBORS"]
CMD ["--server"]