read and write permissions
Browse files- Dockerfile +7 -2
Dockerfile
CHANGED
@@ -10,8 +10,6 @@ WORKDIR /srv
|
|
10 |
# Copy requirements file first to leverage caching
|
11 |
COPY --chown=admin requirements.txt .
|
12 |
|
13 |
-
# Install Python dependencies
|
14 |
-
RUN pip install --no-cache-dir -r requirements.txt
|
15 |
|
16 |
# Install system dependencies
|
17 |
RUN apt-get update && \
|
@@ -59,9 +57,16 @@ RUN pipx ensurepath && \
|
|
59 |
# Copy the application code
|
60 |
COPY --chown=admin . /srv
|
61 |
|
|
|
|
|
|
|
|
|
62 |
# Command to run the application
|
63 |
# CMD python -m uvicorn App.app:app --host 0.0.0.0 --port 7860 & python -m celery -A App.Worker.celery worker -c 5 --max-tasks-per-child=1 --without-heartbeat
|
64 |
|
|
|
|
|
|
|
65 |
CMD python -m uvicorn App.app:app --workers 1 --host 0.0.0.0 --port 7860
|
66 |
|
67 |
# Expose port
|
|
|
10 |
# Copy requirements file first to leverage caching
|
11 |
COPY --chown=admin requirements.txt .
|
12 |
|
|
|
|
|
13 |
|
14 |
# Install system dependencies
|
15 |
RUN apt-get update && \
|
|
|
57 |
# Copy the application code
|
58 |
COPY --chown=admin . /srv
|
59 |
|
60 |
+
# Install Python dependencies
|
61 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
62 |
+
|
63 |
+
|
64 |
# Command to run the application
|
65 |
# CMD python -m uvicorn App.app:app --host 0.0.0.0 --port 7860 & python -m celery -A App.Worker.celery worker -c 5 --max-tasks-per-child=1 --without-heartbeat
|
66 |
|
67 |
+
# Give read and write permissions to the admin user
|
68 |
+
RUN chown -R admin:admin /srv
|
69 |
+
|
70 |
CMD python -m uvicorn App.app:app --workers 1 --host 0.0.0.0 --port 7860
|
71 |
|
72 |
# Expose port
|