forked from trueagi-io/metta-wam
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
54 lines (43 loc) · 1.11 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Starting image
FROM ubuntu:22.04
# Install prerequisites
ARG DEBIAN_FRONTEND=noninteractive
RUN apt update && apt install -y \
python3 \
python3-pip \
libpython3-dev \
git \
sudo \
curl \
gcc \
cmake \
python3-venv \
time \
wget \
vim \
bc \
dos2unix
# Create user
ENV USER=user
RUN useradd -m -G sudo -p "" user
RUN chsh -s /bin/bash user
# SWI packages no longer need the user's user
#USER ${USER}
ENV HOME=/home/${USER}
WORKDIR ${HOME}
# Install MeTTaLog
ENV METTALOG_DIR="${HOME}/metta-wam"
ENV PATH="${PATH}:${METTALOG_DIR}"
WORKDIR ${HOME}
# RUN git clone https://github.com/trueagi-io/metta-wam.git
RUN mkdir -p "${METTALOG_DIR}"
WORKDIR ${METTALOG_DIR}
# This COPY is in case we have made local changes
# so we dont have to commit to Github to test them out
COPY ./ ./
# get rid of copied venv that is probably using a whole different python anyways
RUN rm -rf ./venv/
COPY ./INSTALL.sh ./INSTALL.sh
SHELL ["/bin/bash", "-c"]
RUN source ./INSTALL.sh --easy --allow-system-modifications
#RUN swipl -l src/main/metta_interp.pl -g qcompile_mettalog