diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..1c18c02 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,21 @@ +FROM debian:latest + +WORKDIR /usr/src/app + +RUN apt-get -y update && apt-get install -y \ +git \ +clang \ +make \ +libsqlite3-dev + +COPY . ./ + +RUN make -j8 + +# tabledata should be copied from the host; +# clone it there before building the container +#RUN git submodule update --init --recursive + +CMD ["./bin/fusion"] + +LABEL Name=openfusion Version=0.0.1 diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..0dae15e --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,12 @@ +version: '3.4' + +services: + openfusion: + image: openfusion + build: + context: . + dockerfile: ./Dockerfile + ports: + - "23000:23000" + - "23001:23001" + - "8003:8003"