Spaces:
Sleeping
Sleeping
Commit
·
dcdf3ee
1
Parent(s):
c96a313
Update Dockerfile
Browse files- Dockerfile +4 -4
Dockerfile
CHANGED
@@ -19,14 +19,14 @@ RUN chown -R appuser:appuser /app && chmod -R 755 /app
|
|
19 |
# Switch to the user for improved security
|
20 |
USER appuser
|
21 |
|
22 |
-
# Copy the entrypoint script into the
|
23 |
-
COPY entrypoint.sh /
|
24 |
|
25 |
# Make the entrypoint script executable
|
26 |
-
RUN chmod +x /
|
27 |
|
28 |
# Define the entrypoint script to handle user creation and application startup
|
29 |
-
ENTRYPOINT ["/
|
30 |
|
31 |
# Default command to run if the user doesn't provide a command
|
32 |
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860", "--reload"]
|
|
|
19 |
# Switch to the user for improved security
|
20 |
USER appuser
|
21 |
|
22 |
+
# Copy the entrypoint script into the user's home directory
|
23 |
+
COPY entrypoint.sh /home/appuser/entrypoint.sh
|
24 |
|
25 |
# Make the entrypoint script executable
|
26 |
+
RUN chmod +x /home/appuser/entrypoint.sh
|
27 |
|
28 |
# Define the entrypoint script to handle user creation and application startup
|
29 |
+
ENTRYPOINT ["/home/appuser/entrypoint.sh"]
|
30 |
|
31 |
# Default command to run if the user doesn't provide a command
|
32 |
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860", "--reload"]
|