dockerfile run as user based on env vars

pull/847/head
hunterlong 2020-10-02 13:43:29 -07:00
parent 4c6b9e6a35
commit 744ddfe52f
1 changed files with 4 additions and 0 deletions

View File

@ -15,6 +15,10 @@ ENV IS_DOCKER=true
ENV SASS=/usr/local/bin/sassc
ENV STATPING_DIR=/app
ENV PORT=8080
ENV UID=1000
ENV GID=1000
USER $UID:$GID
EXPOSE $PORT