forked from verydogelabs/wonky-ord-dogecoin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
50 lines (35 loc) · 1.19 KB
/
Dockerfile
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
49
50
FROM rust:slim-bullseye as ord-builder
RUN apt-get update && \
apt-get install -y \
ca-certificates curl file git build-essential libssl-dev pkg-config
RUN mkdir /app
COPY ./*.json /app/
COPY ./*.toml /app/
COPY ./*.sh /app/
COPY ./LICENSE /app/
COPY ./*.svg /app/
COPY ./Cargo.lock /app
RUN mkdir -p /app/templates
COPY ./templates /app/templates
RUN mkdir -p /app/static
COPY ./static /app/static
RUN mkdir -p /app/src
COPY ./src /app/src
RUN mkdir -p /app/fuzz
COPY ./fuzz /app/fuzz
RUN mkdir -p /app/test-bitcoincore-rpc
COPY ./test-bitcoincore-rpc /app/test-bitcoincore-rpc
COPY ./justfile /app
WORKDIR /app
RUN cp starting_sats.json /starting_sats.json
RUN cp subsidies.json /subsidies.json
RUN cargo build --release
# ----------------------------------------------------------------------------------------------------------------------
FROM rust:slim-bullseye
RUN apt-get update && \
apt-get install -y \
ca-certificates curl file git build-essential libssl-dev pkg-config
COPY --from=ord-builder /app/target/release/ord /usr/local/bin/ord
COPY --from=ord-builder /subsidies.json /subsidies.json
COPY --from=ord-builder /starting_sats.json /starting_sats.json
RUN mkdir /root/.data