forked from Bitc0indad/gnostr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
27 lines (26 loc) · 876 Bytes
/
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
FROM rust:latest as base
LABEL org.opencontainers.image.source="https://github.com/gnostr-org/gnostr"
LABEL org.opencontainers.image.description="gnostr-docker"
RUN touch updated
RUN echo $(date +%s) > updated
RUN apt-get update
RUN apt-get install -y bash cmake git libssl-dev make tcl-dev
RUN git clone --branch master --depth 1 https://github.com/gnostr-org/gnostr.git
WORKDIR /tmp
RUN git clone --recurse-submodules -j4 --branch master --depth 10 https://github.com/gnostr-org/gnostr.git
WORKDIR /tmp/gnostr
RUN make detect
RUN make gnostr-am
FROM base as gnostr
RUN cmake .
RUN make gnostr
ENV SUDO=sudo
RUN make gnostr-install
RUN cargo install gnostr-bins --force
RUN cargo install gnostr-cli --force
RUN install ./serve /usr/local/bin || true
ENV PATH=$PATH:/usr/bin/systemctl
RUN ps -p 1 -o comm=
EXPOSE 80 6102 8080 ${PORT}
VOLUME /src
FROM gnostr as gnostr-docker