File size: 445 Bytes
c6aabe7
de3bdc2
 
 
 
 
c6aabe7
de3bdc2
 
 
 
 
 
 
c6aabe7
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
FROM nginx:alpine

# Create the directory and set permissions first
RUN mkdir -p /usr/share/nginx/html && chmod -R 777 /usr/share/nginx/html

# Now copy your files
COPY . /usr/share/nginx/html

# Copy the config
COPY nginx.conf /etc/nginx/conf.d/default.conf

# Fix permissions for Nginx internal folders (HF requirement)
RUN chmod -R 777 /var/cache/nginx /var/run /var/log/nginx /etc/nginx/conf.d

EXPOSE 7860
CMD ["nginx", "-g", "daemon off;"]