Spaces:
Running
Running
| 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;"] |