Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +4 -1
Dockerfile
CHANGED
@@ -25,6 +25,9 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
25 |
# Copy the application code
|
26 |
COPY . .
|
27 |
|
|
|
|
|
|
|
28 |
# Create a non-root user for security
|
29 |
RUN useradd -m -u 1000 user
|
30 |
USER user
|
@@ -36,4 +39,4 @@ EXPOSE 7860
|
|
36 |
HEALTHCHECK CMD curl --fail http://localhost:7860/_stcore/health
|
37 |
|
38 |
# Command to run the application
|
39 |
-
CMD ["
|
|
|
25 |
# Copy the application code
|
26 |
COPY . .
|
27 |
|
28 |
+
# Make the startup script executable
|
29 |
+
RUN chmod +x start.sh
|
30 |
+
|
31 |
# Create a non-root user for security
|
32 |
RUN useradd -m -u 1000 user
|
33 |
USER user
|
|
|
39 |
HEALTHCHECK CMD curl --fail http://localhost:7860/_stcore/health
|
40 |
|
41 |
# Command to run the application
|
42 |
+
CMD ["./start.sh"]
|