ankush-003 commited on
Commit
7fd0fd5
·
verified ·
1 Parent(s): 0348a43

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -7
Dockerfile CHANGED
@@ -10,10 +10,10 @@ RUN apt-get update && \
10
  python3-dev \
11
  && rm -rf /var/lib/apt/lists/*
12
 
13
- # Create virtual environment
14
  ENV VIRTUAL_ENV=/opt/venv
15
- RUN python3 -m venv $VIRTUAL_ENV
16
- ENV PATH="$VIRTUAL_ENV/bin:$PATH"
17
 
18
  # Switch to the "user" user
19
  USER user
@@ -36,12 +36,9 @@ RUN pip install --no-cache-dir --upgrade pip && \
36
  # Copy the rest of the application with correct ownership
37
  COPY --chown=user . $HOME/app
38
 
39
- # Create content directory for assets (if needed)
40
  RUN mkdir -p content
41
 
42
- # If you need to download specific assets, uncomment and modify this line:
43
- # ADD --chown=user https://<SOME_ASSET_URL> content/<SOME_ASSET_NAME>
44
-
45
  # Expose the default Chainlit port
46
  EXPOSE 7860
47
 
 
10
  python3-dev \
11
  && rm -rf /var/lib/apt/lists/*
12
 
13
+ # Create virtual environment and set ownership
14
  ENV VIRTUAL_ENV=/opt/venv
15
+ RUN python3 -m venv $VIRTUAL_ENV && \
16
+ chown -R user:user $VIRTUAL_ENV
17
 
18
  # Switch to the "user" user
19
  USER user
 
36
  # Copy the rest of the application with correct ownership
37
  COPY --chown=user . $HOME/app
38
 
39
+ # Create content directory for assets
40
  RUN mkdir -p content
41
 
 
 
 
42
  # Expose the default Chainlit port
43
  EXPOSE 7860
44