OLD | NEW |
1 FROM ubuntu:trusty | 1 FROM base:latest |
2 | 2 |
3 # Run the command below to update the lib list. | |
4 # ldd ./blimp_engine_app | grep usr/lib | awk '{print $3}' | xargs -n1 \ | |
5 # dpkg-query -S | awk -F: '{print $1}' | sort | uniq | |
6 RUN apt-get update && \ | |
7 apt-get install -yq libdrm2 libfontconfig1 libfreetype6 libgraphite2-3 \ | |
8 libharfbuzz0b libnspr4 libnss3 libstdc++6 | |
9 | |
10 # stunnel4 is needed for incoming TLS connections. | |
11 # wget is needed for crash reporting. | |
12 RUN apt-get update && apt-get install -yq stunnel4 wget | |
13 | |
14 # gdb and strace are not strictly required, but having them around makes | |
15 # debugging easier. | |
16 RUN apt-get update && apt-get install -yq gdb strace | |
17 | |
18 RUN mkdir /engine | 3 RUN mkdir /engine |
19 | 4 |
20 RUN useradd -ms /bin/bash blimp_user | 5 RUN useradd -ms /bin/bash blimp_user |
21 | 6 |
22 # The glob below expands to all files, but does not add directories | 7 # The glob below expands to all files, but does not add directories |
23 # recursively. | 8 # recursively. |
24 ADD * /engine/ | 9 ADD * /engine/ |
25 ADD gen/third_party/blimp_fonts /engine/fonts | 10 ADD gen/third_party/blimp_fonts /engine/fonts |
26 RUN mv /engine/chrome_sandbox /engine/chrome-sandbox | 11 RUN mv /engine/chrome_sandbox /engine/chrome-sandbox |
27 RUN chown -R blimp_user /engine | 12 RUN chown -R blimp_user /engine |
28 | 13 |
29 USER blimp_user | 14 USER blimp_user |
30 WORKDIR "/engine" | 15 WORKDIR "/engine" |
31 | 16 |
32 ENTRYPOINT ["/engine/start_engine.sh"] | 17 ENTRYPOINT ["/engine/start_engine.sh"] |
OLD | NEW |