forked from klavinslab/enviro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
56 lines (48 loc) · 1.36 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
53
54
55
56
#
# docker run -p80:80 -p8765:8765 -v $PWD:/development -it enviro bash
#
# FROM klavins/elma:latest
FROM elma
RUN apt-get update && \
apt-get install -y git && \
apt-get install -y libxmu-dev && \
apt-get install -y freeglut3-dev && \
apt-get install -y cmake && \
apt-get install -y libxrandr-dev && \
apt-get install -y cppcheck && \
apt-get install -y graphviz && \
apt-get install -y doxygen && \
apt-get install -y nano && \
apt-get install -y nodejs
# Install chipmunk
ENV SRCDIR /usr/local/src/
ENV CPDIR $SRCDIR/Chipmunk2D
ENV LD_LIBRARY_PATH $CPDIR/build/src
WORKDIR $SRCDIR
RUN git clone https://github.com/slembcke/Chipmunk2D.git
RUN mkdir build
WORKDIR $CPDIR/build
RUN cmake ..
RUN make
# Install ws to serve a website
RUN curl https://www.npmjs.com/install.sh | sh
RUN npm install -g local-web-server
# Install uSockets
WORKDIR /tmp
RUN git clone https://github.com/uNetworking/uSockets.git
WORKDIR /tmp/uSockets
RUN make
RUN mv src /usr/local/include/uSockets
RUN mv uSockets.a /usr/local/lib/libuSockets.a
RUN rm -r /tmp/uSockets
# Install uWebSockets
WORKDIR /tmp
RUN git clone https://github.com/uNetworking/uWebSockets.git
RUN mv /tmp/uWebSockets/src /usr/local/include/uWebSockets
RUN rm -r /tmp/uWebSockets
# Get ready to write some code
RUN mkdir /development
WORKDIR /development
# expose ports
EXPOSE 80
EXPOSE 8765