forked from opencog/opencog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
27 lines (22 loc) · 820 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
FROM ubuntu:14.04
RUN apt-get update
RUN apt-get -y install software-properties-common python-pip
# ocpkg tool to install repositories and dependencies
COPY scripts/ocpkg scripts/install-dependencies-trusty\
opencog/python/web/api/install_dependencies.sh /tmp/
RUN chmod +x /tmp/install-dependencies-trusty /tmp/install_dependencies.sh
RUN /tmp/install-dependencies-trusty
RUN /tmp/install_dependencies.sh
# Create and switch user. The user is privileged with no password required
RUN adduser --disabled-password --gecos "OpenCog Developer" opencog
RUN adduser opencog sudo
RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
USER opencog
# Tools
RUN sudo apt-get -y install git
RUN sudo apt-get -y install rlwrap
RUN sudo apt-get -y install telnet
# Environment
WORKDIR /home/opencog
CMD bash
EXPOSE 5000