forked from DIT168Group9/DIT168Group9
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (32 loc) · 1.01 KB
/
Copy pathDockerfile
File metadata and controls
33 lines (32 loc) · 1.01 KB
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
# docker run --rm -ti -v $PWD:/opt/sources ubuntu:16.04 /bin/sh
FROM ubuntu:16.04 AS builder
MAINTAINER DIT168-GROUP9 github.com/dit168group9
RUN apt-get update && \
apt-get install build-essential cmake -y && \
apt-get install software-properties-common -y && \
apt-add-repository ppa:chrberger/libcluon && \
apt-get update && \
apt-get install libcluon -y
ADD . /opt/sources
WORKDIR /opt/sources
RUN cd /opt/sources && \
mkdir build && \
cd build && \
cmake -D CMAKE_BUILD_TYPE=Release .. && \
make && \
cd src/V2V/ && \
cp GROUP9.V2V /tmp && \
cd ../PS4Controller/ && \
cp GROUP9.PS4Controller /tmp
# Deploy.
FROM ubuntu:16.04
MAINTAINER DIT168-GROUP9 github.com/dit168group9
RUN apt-get update && \
apt-get install software-properties-common -y && \
apt-add-repository ppa:chrberger/libcluon && \
apt-get update && \
apt-get install libcluon -y
WORKDIR /opt
COPY --from=builder /tmp/GROUP9.V2V .
COPY --from=builder /tmp/GROUP9.PS4Controller .
CMD ["/bin/sh"]