mirror of
https://github.com/Retropex/dockerfile-deps.git
synced 2025-05-13 00:40:41 +02:00
add LNbits Dockerfiles (#77)
* add LNbits Dockerfiles * remove sh from CMD in Dockerfile for faster restarts with init:true
This commit is contained in:
parent
d25a0ecd08
commit
d9089aa7ca
34
LNbits/0.11.3/linuxamd64.Dockerfile
Normal file
34
LNbits/0.11.3/linuxamd64.Dockerfile
Normal file
@ -0,0 +1,34 @@
|
||||
FROM python:3.10-slim-bullseye
|
||||
|
||||
ENV REPO https://github.com/lnbits/lnbits
|
||||
ENV REPO_REF 0.11.3
|
||||
|
||||
RUN apt-get clean
|
||||
RUN apt-get update
|
||||
RUN apt-get install -y curl pkg-config build-essential git
|
||||
|
||||
RUN curl -sSL https://install.python-poetry.org | python3 -
|
||||
ENV PATH="/root/.local/bin:$PATH"
|
||||
|
||||
# needed for backups postgresql-client version 14 (pg_dump)
|
||||
RUN apt-get install -y apt-utils wget
|
||||
RUN echo "deb http://apt.postgresql.org/pub/repos/apt bullseye-pgdg main" > /etc/apt/sources.list.d/pgdg.list
|
||||
RUN wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
|
||||
RUN apt-get update
|
||||
RUN apt-get install -y postgresql-client-14
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN git clone "$REPO" . --depth=1 --branch "$REPO_REF" && git checkout "$REPO_REF"
|
||||
|
||||
RUN mkdir data
|
||||
|
||||
RUN poetry install --only main
|
||||
|
||||
# hardcoded so we can ommit the sh in CMD that was used in upstream lnbits Dockerfile
|
||||
#ENV LNBITS_PORT="5000"
|
||||
#ENV LNBITS_HOST="0.0.0.0"
|
||||
|
||||
EXPOSE 5000
|
||||
|
||||
CMD ["poetry", "run", "lnbits", "--port", "5000", "--host", "0.0.0.0"]
|
34
LNbits/0.11.3/linuxarm64v8.Dockerfile
Normal file
34
LNbits/0.11.3/linuxarm64v8.Dockerfile
Normal file
@ -0,0 +1,34 @@
|
||||
FROM python:3.10-slim-bullseye
|
||||
|
||||
ENV REPO https://github.com/lnbits/lnbits
|
||||
ENV REPO_REF 0.11.3
|
||||
|
||||
RUN apt-get clean
|
||||
RUN apt-get update
|
||||
RUN apt-get install -y curl pkg-config build-essential git
|
||||
|
||||
RUN curl -sSL https://install.python-poetry.org | python3 -
|
||||
ENV PATH="/root/.local/bin:$PATH"
|
||||
|
||||
# needed for backups postgresql-client version 14 (pg_dump)
|
||||
RUN apt-get install -y apt-utils wget
|
||||
RUN echo "deb http://apt.postgresql.org/pub/repos/apt bullseye-pgdg main" > /etc/apt/sources.list.d/pgdg.list
|
||||
RUN wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
|
||||
RUN apt-get update
|
||||
RUN apt-get install -y postgresql-client-14
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN git clone "$REPO" . --depth=1 --branch "$REPO_REF" && git checkout "$REPO_REF"
|
||||
|
||||
RUN mkdir data
|
||||
|
||||
RUN poetry install --only main
|
||||
|
||||
# hardcoded so we can ommit the sh in CMD that was used in upstream lnbits Dockerfile
|
||||
#ENV LNBITS_PORT="5000"
|
||||
#ENV LNBITS_HOST="0.0.0.0"
|
||||
|
||||
EXPOSE 5000
|
||||
|
||||
CMD ["poetry", "run", "lnbits", "--port", "5000", "--host", "0.0.0.0"]
|
Loading…
Reference in New Issue
Block a user