Update Dockerfile
Browse files- Dockerfile +6 -3
Dockerfile
CHANGED
@@ -4,6 +4,9 @@ FROM python:3.12
|
|
4 |
# Avoid cache for git clone by using build args (change the value to bust cache)
|
5 |
ARG CACHEBUST=1
|
6 |
|
|
|
|
|
|
|
7 |
# Create non-root user
|
8 |
RUN useradd -m -u 1000 user
|
9 |
|
@@ -51,8 +54,8 @@ RUN chmod +x /start.sh # Ensure it has execute permissions
|
|
51 |
# Switch back to the 'user' user to run the app
|
52 |
USER user
|
53 |
|
54 |
-
# Run the start script
|
55 |
-
CMD ["/start.sh"]
|
56 |
-
|
57 |
# Expose port for the app
|
58 |
EXPOSE 7860
|
|
|
|
|
|
|
|
4 |
# Avoid cache for git clone by using build args (change the value to bust cache)
|
5 |
ARG CACHEBUST=1
|
6 |
|
7 |
+
# Install Nginx
|
8 |
+
RUN apt-get update && apt-get install -y nginx
|
9 |
+
|
10 |
# Create non-root user
|
11 |
RUN useradd -m -u 1000 user
|
12 |
|
|
|
54 |
# Switch back to the 'user' user to run the app
|
55 |
USER user
|
56 |
|
|
|
|
|
|
|
57 |
# Expose port for the app
|
58 |
EXPOSE 7860
|
59 |
+
|
60 |
+
# Run the start script
|
61 |
+
CMD ["/start.sh"]
|