Skip to content

Commit

Permalink
switch to alpine
Browse files Browse the repository at this point in the history
  • Loading branch information
etienne committed Oct 28, 2024
1 parent f666017 commit 58ac11e
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 12 deletions.
40 changes: 28 additions & 12 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,27 +1,43 @@
# FROM alpine
FROM debian:12
FROM alpine
LABEL authors="toxic0berliner"

# Set correct environment variables
ENV HOME /duc

RUN apt-get update -qq && \
apt-get install -qq wget apache2 libncursesw5-dev libcairo2-dev libpango1.0-dev build-essential libtkrzw-dev git autoconf automake && \
apt-get autoremove && \
apt-get autoclean && \
rm -rf /var/lib/apt/lists/*
# Install Dependencies
RUN apk add --no-cache --no-check-certificate\
wget \
git \
rsync \
bash \
automake \
autoconf \
linux-headers \
pkgconfig \
apache2 \
ncurses-dev \
libncursesw \
zlib \
cairo-dev \
pango-dev \
build-base \
kyotocabinet-dev && \
cd /tmp && \
git -c http.sslVerify=false clone https://github.com/estraier/tkrzw.git &&\
cd /tmp/tkrzw && \
./configure && \
make && \
make install && \
cd .. && \
rm -rf tkrzw

ARG git_user
ARG git_pass
ENV GIT_USERNAME $git_user
ENV GIT_PASSWORD $git_pass

# Install duc
# /duc/db is a directory to mount multiple DBs, for server. duc_startup.sh look into this directory and create CGIs
RUN mkdir /duc && \
mkdir /duc/db && \
cd /duc && \
git -c http.sslVerify=false clone https://${GIT_USERNAME}:${GIT_PASSWORD}@gitlab.amato.top/dev/duc.git &&\
git -c http.sslVerify=false clone https://github.com/zevv/duc.git &&\
cd /duc/duc && \
autoreconf -i && \
./configure && \
Expand Down
13 changes: 13 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004

Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>

Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.

DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

0. You just DO WHAT THE FUCK YOU WANT TO.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
This is a fork of [minostauros/duc-docker](https://github.com/minostauros/duc-docker) adapted to my needs to
- list all available databases
- avoid creating unneeded phantom volumes
- based on alpine


# duc-docker
Expand Down

0 comments on commit 58ac11e

Please sign in to comment.