-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile
37 lines (24 loc) · 957 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
FROM python:3.7.11-bullseye
RUN apt-get update
# Install Souffle dependencies
RUN apt-get install -y bison build-essential clang cmake doxygen flex g++ git libffi-dev libncurses5-dev libsqlite3-dev make mcpp sqlite3 zlib1g-dev bash-completion lsb-release
# Clone and build souffle
RUN git clone https://github.com/souffle-lang/souffle.git; \
cd souffle; \
cmake -S . -B build; \
cmake --build build -j"$(grep -c ^processor /proc/cpuinfo)" --target install;
# Install packages we need
RUN apt-get install -y perl
# Cleanup
RUN rm -rf souffle; \
apt-get purge -y bison build-essential clang cmake doxygen flex g++ git make mcpp; \
apt-get autoremove -y
# Install fake mcpp to disable #include
COPY fake-mcpp.sh /bin/mcpp
# Copy over souffle-web files
RUN mkdir souffle-web
WORKDIR souffle-web
COPY third-party third-party
COPY server.py .
COPY doc/config.json config.json* ./
ENTRYPOINT ["python3", "-u", "server.py", "8123"]