mirror of
https://git.freecumextremist.com/icscarythings/treebird-docker.git
synced 2024-11-04 21:24:12 +00:00
29 lines
624 B
Text
29 lines
624 B
Text
# Container just for building the code and debug
|
|
FROM debian:testing
|
|
|
|
RUN apt update && apt upgrade -y
|
|
RUN apt install -y \
|
|
build-essential \
|
|
libcurl4-gnutls-dev \
|
|
libcjson-dev \
|
|
libpcre3-dev \
|
|
libpcre2-dev \
|
|
libfcgi-dev \
|
|
git pkgconf \
|
|
fcgiwrap
|
|
|
|
WORKDIR /usr/local/src/treebird
|
|
|
|
# original source
|
|
COPY treebird/ .
|
|
COPY mastodont-c ./mastodont-c
|
|
COPY treebird/config.def.h ./config.h
|
|
|
|
# patch or override files
|
|
COPY files/ .
|
|
RUN patch -p1 < instance_env_config.h.patch && patch -p1 < instance_env_main.c.patch
|
|
|
|
RUN make && make install
|
|
|
|
# defined only for debugging reasons
|
|
CMD fcgiwrap -c 10 -f -s tcp:0.0.0.0:4008
|