Skip to content

LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows

permission issue on python package installation fixed (#67)

Jaseem Jasf6205e793b2f
diff --git a/docker/dockerfiles/prompt.Dockerfile b/docker/dockerfiles/prompt.Dockerfile
index b7435643e..d9ede2eb8 100644
--- a/docker/dockerfiles/prompt.Dockerfile
+++ b/docker/dockerfiles/prompt.Dockerfile
@@ -19,7 +19,11 @@ RUN apt-get update; \
git; \
apt-get clean && rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/*; \
\
- pip install --no-cache-dir -U pip pdm~=${PDM_VERSION};
+ pip install --no-cache-dir -U pip pdm~=${PDM_VERSION}; \
+ \
+ # Creates a non-root user with an explicit UID and adds permission to access the /app folder
+ # For more info, please refer to https://aka.ms/vscode-docker-python-configure-containers
+ adduser -u 5678 --disabled-password --gecos "" --home /app unstract;
WORKDIR /app
@@ -68,10 +72,6 @@ RUN mkdir prompt-studio-data
EXPOSE 3003
-# Creates a non-root user with an explicit UID and adds permission to access the /app folder
-# For more info, please refer to https://aka.ms/vscode-docker-python-configure-containers
-RUN adduser -u 5678 --disabled-password --gecos "" unstract;
-
USER unstract
# During debugging, this entry point will be overridden. For more information, please refer to https://aka.ms/vscode-docker-python-debug