-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
executable file
·37 lines (37 loc) · 1.2 KB
/
Dockerfile
File metadata and controls
executable file
·37 lines (37 loc) · 1.2 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
FROM emscripten/emsdk:latest as base
LABEL org.opencontainers.image.source="https://github.com/bitcoincore-dev/miniscript-docker"
LABEL org.opencontainers.image.description="miniscript compiler"
RUN touch updated
RUN echo $(date +%s) > updated
RUN apt-get update
RUN echo $(date +%s) > updated
FROM base as systemd
RUN apt-get install systemd bash jq -y
RUN echo $(date +%s) > updated
RUN chmod +x /usr/bin/systemctl
RUN echo $(date +%s) > updated
FROM systemd as clone
RUN rm -rf /src
RUN git clone --branch v0.0.10 --depth 1 https://github.com/bitcoincore-dev/miniscript-docker /src
RUN echo $(date +%s) > updated
FROM clone as make
WORKDIR /src
RUN make miniscript
RUN echo $(date +%s) > updated
RUN install miniscript /usr/local/bin
RUN echo $(date +%s) > updated
RUN make miniscript.js ##TODO: better buildx multiplatform building
#RUN echo $(date +%s) > updated
FROM make as install
RUN install ./miniscript /usr/local/bin
RUN echo $(date +%s) > updated
RUN install ./miniscript-** /usr/local/bin
RUN install ./serve /usr/local/bin
RUN echo $(date +%s) > updated
WORKDIR /src
FROM install as miniscript
COPY --from=clone /src /src
ENV PATH=$PATH:/usr/bin/systemctl
RUN ps -p 1 -o comm=
EXPOSE 80 443 6102 8080 8081
VOLUME /src