mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
update Dockerfile - more simple user creation
This commit is contained in:
parent
bf812e6493
commit
5bb0f9bedc
@ -81,12 +81,15 @@ FROM python-base AS runtime
|
|||||||
|
|
||||||
# Create a new User
|
# Create a new User
|
||||||
ARG UNAME=appuser
|
ARG UNAME=appuser
|
||||||
RUN groupadd "${APPNAME}" \
|
RUN useradd \
|
||||||
&& useradd -l -s /bin/bash "${UNAME}"
|
--no-log-init \
|
||||||
USER "${UNAME}"
|
-M \
|
||||||
|
-U \
|
||||||
|
"${UNAME}"
|
||||||
|
USER ${UNAME}
|
||||||
|
|
||||||
# setup runtime environment
|
# setup runtime environment
|
||||||
COPY --chown=${UNAME}:${APPNAME} --from=pyproject-builder ${APPDIR}/${APPNAME} ${APPNAME}
|
COPY --chown=${UNAME} --from=pyproject-builder ${APPDIR}/${APPNAME} ${APPNAME}
|
||||||
ENV INVOKEAI_ROOT /data
|
ENV INVOKEAI_ROOT /data
|
||||||
ENV TRANSFORMERS_CACHE /data/.cache
|
ENV TRANSFORMERS_CACHE /data/.cache
|
||||||
ENV INVOKE_MODEL_RECONFIGURE "--yes --default_only"
|
ENV INVOKE_MODEL_RECONFIGURE "--yes --default_only"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user