| OLD | NEW |
| (Empty) |
| 1 FROM base:latest | |
| 2 | |
| 3 RUN mkdir /tmp/engine | |
| 4 | |
| 5 RUN useradd -ms /bin/bash blimp_user | |
| 6 | |
| 7 # Permission is not set correctly on directories automatically created by | |
| 8 # Docker ADD/COPY (see bug https://github.com/docker/docker/issues/7511 and | |
| 9 # https://github.com/docker/docker/issues/1295). So working around this issue | |
| 10 # by adding the files to tmp directory and then moving it to right location. | |
| 11 ADD * /tmp/engine/ | |
| 12 RUN mv /tmp/engine/chrome_sandbox /tmp/engine/chrome-sandbox && \ | |
| 13 mv /tmp/engine/third_party/blimp_fonts /tmp/engine/fonts && \ | |
| 14 cp -r /tmp/engine /engine && \ | |
| 15 chown -R blimp_user /engine && \ | |
| 16 rm -rf /tmp/engine | |
| 17 | |
| 18 USER blimp_user | |
| 19 WORKDIR "/engine" | |
| 20 | |
| 21 ENTRYPOINT ["/engine/start_engine.sh"] | |
| OLD | NEW |