Davy592 commited on
Commit
fe4d307
·
verified ·
1 Parent(s): c712954

Moved ENV variables from Dockerfile to HSpace variables

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -8
Dockerfile CHANGED
@@ -11,8 +11,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
11
  # Setup non-root user
12
  RUN useradd -m -u 1000 user
13
  USER user
14
- ENV HOME=/home/user \
15
- PATH="/home/user/.local/bin:$PATH"
16
 
17
  WORKDIR $HOME/app
18
 
@@ -20,12 +19,6 @@ WORKDIR $HOME/app
20
  # Copy only configuration files to leverage Docker cache
21
  COPY --chown=user pyproject.toml uv.lock ./
22
 
23
- # Set variables for uv:
24
- # UV_COMPILE_BYTECODE=1: Compile .pyc for faster startup
25
- # UV_LINK_MODE=copy: Copy files instead of using hardlink (safer in Docker)
26
- ENV UV_COMPILE_BYTECODE=1
27
- ENV UV_LINK_MODE=copy
28
-
29
  # Create the venv and install dependencies from lockfile
30
  # --frozen: ERROR if lockfile is not synchronized with toml (security)
31
  # --no-install-project: Install only libraries
 
11
  # Setup non-root user
12
  RUN useradd -m -u 1000 user
13
  USER user
14
+ ENV PATH="/home/user/.local/bin:$PATH"
 
15
 
16
  WORKDIR $HOME/app
17
 
 
19
  # Copy only configuration files to leverage Docker cache
20
  COPY --chown=user pyproject.toml uv.lock ./
21
 
 
 
 
 
 
 
22
  # Create the venv and install dependencies from lockfile
23
  # --frozen: ERROR if lockfile is not synchronized with toml (security)
24
  # --no-install-project: Install only libraries