From 52a3ab533301e0c23eace2846a8e29e2df3f2c2b Mon Sep 17 00:00:00 2001 From: Sylvere Richard Date: Sat, 5 Oct 2024 10:13:03 +0200 Subject: [PATCH] refac: remove docker warnings during image build --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index c944f54e6..0a486eceb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,7 +17,7 @@ ARG UID=0 ARG GID=0 ######## WebUI frontend ######## -FROM --platform=$BUILDPLATFORM node:21-alpine3.19 as build +FROM --platform=$BUILDPLATFORM node:21-alpine3.19 AS build ARG BUILD_HASH WORKDIR /app @@ -30,7 +30,7 @@ ENV APP_BUILD_HASH=${BUILD_HASH} RUN npm run build ######## WebUI backend ######## -FROM python:3.11-slim-bookworm as base +FROM python:3.11-slim-bookworm AS base # Use args ARG USE_CUDA @@ -82,7 +82,7 @@ ENV HF_HOME="/app/backend/data/cache/embedding/models" WORKDIR /app/backend -ENV HOME /root +ENV HOME=/root # Create user and group if not root RUN if [ $UID -ne 0 ]; then \ if [ $GID -ne 0 ]; then \ @@ -161,6 +161,6 @@ USER $UID:$GID ARG BUILD_HASH ENV WEBUI_BUILD_VERSION=${BUILD_HASH} -ENV DOCKER true +ENV DOCKER=true CMD [ "bash", "start.sh"]