Add Dockerfile and docker-compose

This commit is contained in:
gsemaj 2023-06-22 21:46:24 -04:00
parent 23ab908366
commit f47ed27000
No known key found for this signature in database
GPG Key ID: B7F3719AC074B1A6
2 changed files with 33 additions and 0 deletions

21
Dockerfile Normal file
View File

@ -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

12
docker-compose.yml Normal file
View File

@ -0,0 +1,12 @@
version: '3.4'
services:
openfusion:
image: openfusion
build:
context: .
dockerfile: ./Dockerfile
ports:
- "23000:23000"
- "23001:23001"
- "8003:8003"