Dockerfile: create APP_DIR

The APP_DIR directory isn't created, so the container can't start.

Create it and make sure it's owned by the nodepool (10001) user.

Change-Id: Ic119c48482d7bd8f35b6dbb7bf7f350059ec94fc
This commit is contained in:
Ian Wienand 2019-11-11 14:50:12 +11:00
parent c790ec4721
commit 960d2a00df
1 changed files with 2 additions and 0 deletions

View File

@ -34,6 +34,8 @@ RUN chmod g=u /etc/passwd /etc/shadow
ENV APP_ROOT=/var/lib/nodepool
ENV HOME=${APP_ROOT}
ENV USER_NAME=nodepool
RUN mkdir ${APP_ROOT}
RUN chown 10001:1001 ${APP_ROOT}
USER 10001
COPY tools/uid_entrypoint.sh /uid_entrypoint
ENTRYPOINT ["/uid_entrypoint"]