diff --git a/Dockerfile b/Dockerfile index aafce44..0522655 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,9 @@ -FROM nginx -#COPY index.html /usr/share/nginx/html +FROM debian:testing +# FROM nginx # cant use this because it uses debian stable with ancient packeges -RUN apt update && apt upgrade - -RUN apt install build-essential libcurl4-gnutls-dev libcjson-dev libpcre3-dev libfcgi-dev git +RUN apt update && apt upgrade -y +RUN apt install -y build-essential libcurl4-gnutls-dev libcjson-dev libpcre3-dev libfcgi-dev git pkgconf ENV TB_BUILD_DIR=/usr/local/src/treebird - -RUN git clone https://git.nekobit.net/repos/treebird.git $TB_BUILD_DIR && make -C $TB_BUILD_DIR all install +COPY treebird $TB_BUILD_DIR +RUN make -C $TB_BUILD_DIR && make -C $TB_BUILD_DIR install