treebird-docker/Dockerfile.build

30 lines
624 B
Docker

# 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