We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52b47c7 commit 589e8e6Copy full SHA for 589e8e6
Dockerfile
@@ -45,13 +45,8 @@ COPY requirements.txt .
45
RUN pip install --no-cache-dir --no-index --find-links /app/wheelhouse -r requirements.txt && \
46
rm -rf /app/wheelhouse
47
48
-# Copy application source code
49
-COPY app/main.py ./
50
-COPY app/databases/ ./databases/
51
-COPY app/models/ ./models/
52
-COPY app/routes/ ./routes/
53
-COPY app/schemas/ ./schemas/
54
-COPY app/services/ ./services/
+# Copy entire app package with correct ownership
+COPY --chown=fastapi:fastapi app/ ./app/
55
56
# https://rules.sonarsource.com/docker/RSPEC-6504/
57
0 commit comments