rogerxavier commited on
Commit
d403110
1 Parent(s): 0cd3a1d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +17 -1
Dockerfile CHANGED
@@ -1,2 +1,18 @@
 
1
  FROM nginx:alpine
2
- COPY . /usr/share/nginx/html
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use the official Nginx image based on Alpine
2
  FROM nginx:alpine
3
+
4
+ # Create a directory with the right permissions
5
+ RUN mkdir -p /var/cache/nginx && \
6
+ chown -R nginx:nginx /var/cache/nginx
7
+
8
+ # Copy your web files into the Nginx HTML directory
9
+ COPY . /usr/share/nginx/html
10
+
11
+ # Set the user to nginx to ensure it runs with the correct permissions
12
+ USER nginx
13
+
14
+ # Expose the necessary port
15
+ EXPOSE 7860
16
+
17
+ # Start Nginx
18
+ CMD ["nginx", "-g", "daemon off;"]