Alina Lozovskaya commited on
Commit
e69fd6e
1 Parent(s): 2d5c4a5

Disable user in containter

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -6
Dockerfile CHANGED
@@ -13,11 +13,11 @@ FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim
13
  WORKDIR /app
14
 
15
  # Create non-root user
16
- RUN useradd -m -u 1000 user
17
 
18
  # Create and configure cache directory
19
- RUN mkdir -p /app/.cache && \
20
- chown -R user:user /app
21
 
22
  # Copy uv configuration files
23
  COPY backend/pyproject.toml backend/uv.lock ./
@@ -55,9 +55,9 @@ ENV HF_HOME=/app/.cache \
55
  NODE_ENV=production
56
 
57
  # Note: HF_TOKEN should be provided at runtime, not build time
58
- RUN chown -R user:user /app
59
- RUN chmod -R 775 /app/
60
- USER user
61
  EXPOSE 7860
62
 
63
  # Start both servers with wait-for
 
13
  WORKDIR /app
14
 
15
  # Create non-root user
16
+ # RUN useradd -m -u 1000 user
17
 
18
  # Create and configure cache directory
19
+ RUN mkdir -p /app/.cache
20
+ #RUN chown -R user:user /app
21
 
22
  # Copy uv configuration files
23
  COPY backend/pyproject.toml backend/uv.lock ./
 
55
  NODE_ENV=production
56
 
57
  # Note: HF_TOKEN should be provided at runtime, not build time
58
+ # RUN chown -R user:user /app
59
+ # RUN chmod -R 775 /app/
60
+ # USER user
61
  EXPOSE 7860
62
 
63
  # Start both servers with wait-for