diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..d89bcfe --- /dev/null +++ b/Makefile @@ -0,0 +1,8 @@ +# Created By: suorcd + +SHELL := /usr/bin/env bash + + +.PHONY: podping_container +podping_container: + docker build -f ./docker/Dockerfile -t podcastindexorg/podcasting20-podping.cloud . diff --git a/README.md b/README.md index 8e73a4b..997ca69 100644 --- a/README.md +++ b/README.md @@ -90,3 +90,11 @@ example of the format for publisher token records. ## The Podping Network Idea ![Framework Overview 1](framework1.png) + +## Build Docker Container Image + + ```bash + git clone https://github.com/Podcastindex-org/podping.cloud.git + cd podping.cloud + make podping_container + ``` \ No newline at end of file diff --git a/docker/Dockerfile b/docker/Dockerfile index c250f60..26a047a 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -3,12 +3,10 @@ FROM rust:latest AS builder USER root -RUN apt-get update && apt-get install -y apt-utils sqlite3 openssl capnproto libzmq3-dev && rm -rf /var/lib/apt/lists/* +RUN apt update && apt install -y apt-utils sqlite3 openssl capnproto libzmq3-dev && rm -rf /var/lib/apt/lists/* + +COPY ./podping/ /opt/podping.cloud/podping -WORKDIR /opt -ARG GIT_REPO=https://github.com/Podcastindex-org/podping.cloud.git -ARG GIT_BRANCH=main -RUN git clone --depth 1 -b ${GIT_BRANCH} ${GIT_REPO} WORKDIR /opt/podping.cloud/podping RUN cargo build --release RUN cp target/release/podping . @@ -19,7 +17,7 @@ FROM debian:bookworm-slim AS runner USER root -RUN apt-get update && apt-get install -y apt-utils sqlite3 openssl capnproto libzmq3-dev libc6 && rm -rf /var/lib/apt/lists/* +RUN apt update && apt install -y sqlite3 openssl && rm -rf /var/lib/apt/lists/* RUN chown -R 1000:1000 /opt RUN mkdir /data && chown -R 1000:1000 /data