Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dockerfile #967

Open
andrewwippler opened this issue Aug 26, 2024 · 1 comment
Open

Dockerfile #967

andrewwippler opened this issue Aug 26, 2024 · 1 comment

Comments

@andrewwippler
Copy link

andrewwippler commented Aug 26, 2024

I have a kubernetes home lab and prefer to run my services on there instead of a VPS. I created the below Dockerfile so that anyone else can quickly run this project; however, there are a few items I need to make my setup perfect, such as locating where static files and the sqlite file are stored.

FROM ubuntu:22.04

ENV DEBIAN_FRONTEND="noninteractive"

RUN apt update && \
  apt install -y --no-install-recommends \
  build-essential \
  autotools-dev \
  autoconf \
  autoconf-archive \
  git \
  curl \
  unzip \
  zip \
  pkgconf \
  libcurl4-openssl-dev \
  libssl-dev \
  poppler-utils \
  libsword-utils \
  diatheke \
  ldap-utils \
  libmimetic-dev \
  certbot \
  libxml2-dev \
  libutf8proc-dev \
  libgumbo-dev \
  libtidy-dev \
  libpugixml-dev \
  && rm -rf /var/lib/apt/lists/*

RUN mkdir /var/bibledit
  
ENV BIBLEDIT_VERSION "5.1.011"

# install bibledit
RUN curl -o /tmp/bibledit.tar.gz -L "https://github.com/bibledit/cloud/releases/download/${BIBLEDIT_VERSION}/bibledit-${BIBLEDIT_VERSION}.tar.gz" \
    && tar xf /tmp/bibledit.tar.gz -C /var/bibledit --strip-components=1 \
    && rm -rf /tmp/bibledit.tar.gz \
    && echo "Download complete."

WORKDIR /var/bibledit

RUN ./configure
RUN make
    
EXPOSE 8080
CMD /var/bibledit/bibledit
@teusbenschop
Copy link
Member

teusbenschop commented Aug 27, 2024

Nice Dockerfile, yes, it would help others to run it in the same way as you do.

Another way of installing it in Docker would be through apt install bibledit-cloud.

Nice work, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants