OLD | NEW |
| (Empty) |
1 # This Dockerfile is used to build a filesystem environment containing | |
2 # binaries and required files for Blimp Engine test and tests for dependencies | |
3 # of Blimp Engine. It is built on the same base image that is used to run the | |
4 # Engine itself. | |
5 FROM base:latest | |
6 | |
7 RUN mkdir /tmp/blimp/ | |
8 | |
9 RUN useradd -ms /bin/bash blimp_user | |
10 | |
11 # Put all the Blimp related files in /blimp so they are kept separate from | |
12 # the OS files. Using '.' instead of '*' ensures directory structure is | |
13 # maintained since ADD only copies the contents of directories. This is done by | |
14 # first adding the files to directory under /tmp/blimp and then copying it to | |
15 # target /blimp location to workaround Docker permission bug | |
16 # (https://github.com/docker/docker/issues/7511 and | |
17 # https://github.com/docker/docker/issues/1295). | |
18 ADD . /tmp/blimp/ | |
19 | |
20 RUN cp -r /tmp/blimp /blimp && \ | |
21 chown -R blimp_user /blimp && \ | |
22 rm -rf /tmp/blimp | |
23 | |
24 USER blimp_user | |
OLD | NEW |