tfrere commited on
Commit
9a4271e
·
1 Parent(s): 3c49a7f
Files changed (1) hide show
  1. Dockerfile +2 -5
Dockerfile CHANGED
@@ -33,11 +33,11 @@ RUN apt-get update && apt-get install -y \
33
  && pip install poetry
34
 
35
  # Copy poetry configuration
36
- COPY pyproject.toml poetry.lock* ./
37
 
38
  # Install Python dependencies using Poetry
39
  RUN poetry config virtualenvs.create false \
40
- && poetry install --no-interaction --no-ansi --only main --no-root
41
 
42
  # Create directories and set permissions
43
  RUN mkdir -p static templates screenshots /home/user/.cache && \
@@ -64,9 +64,6 @@ RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key
64
  && apt-get install -y google-chrome-stable \
65
  && rm -rf /var/lib/apt/lists/*
66
 
67
- # Switch to non-root user to copy files
68
- USER root
69
-
70
  # Copy application code
71
  COPY app /app/app
72
  COPY templates /app/templates
 
33
  && pip install poetry
34
 
35
  # Copy poetry configuration
36
+ COPY pyproject.toml poetry.lock ./
37
 
38
  # Install Python dependencies using Poetry
39
  RUN poetry config virtualenvs.create false \
40
+ && poetry install --no-interaction --no-ansi --no-root
41
 
42
  # Create directories and set permissions
43
  RUN mkdir -p static templates screenshots /home/user/.cache && \
 
64
  && apt-get install -y google-chrome-stable \
65
  && rm -rf /var/lib/apt/lists/*
66
 
 
 
 
67
  # Copy application code
68
  COPY app /app/app
69
  COPY templates /app/templates