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:
parent
c790ec4721
commit
960d2a00df
|
@ -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"]
|
||||
|
|
Loading…
Reference in New Issue