Spaces:
Sleeping
Sleeping
Commit
·
bd2fd0b
1
Parent(s):
056b12d
add: huggingface docker
Browse files- Dockerfile +0 -10
- nginx.hf.conf +1 -1
Dockerfile
CHANGED
@@ -28,16 +28,6 @@ COPY --from=builder /app/dist /usr/share/nginx/html
|
|
28 |
# Copy custom nginx configuration for HF Spaces
|
29 |
COPY nginx.hf.conf /etc/nginx/nginx.conf
|
30 |
|
31 |
-
# Create nginx directories with proper permissions
|
32 |
-
RUN mkdir -p /var/cache/nginx/client_temp \
|
33 |
-
/var/cache/nginx/proxy_temp \
|
34 |
-
/var/cache/nginx/fastcgi_temp \
|
35 |
-
/var/cache/nginx/uwsgi_temp \
|
36 |
-
/var/cache/nginx/scgi_temp \
|
37 |
-
/var/run/nginx && \
|
38 |
-
chmod -R 755 /var/cache/nginx /var/run/nginx && \
|
39 |
-
touch /var/run/nginx/nginx.pid
|
40 |
-
|
41 |
# Expose port 7860 (required by Hugging Face Spaces)
|
42 |
EXPOSE 7860
|
43 |
|
|
|
28 |
# Copy custom nginx configuration for HF Spaces
|
29 |
COPY nginx.hf.conf /etc/nginx/nginx.conf
|
30 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
# Expose port 7860 (required by Hugging Face Spaces)
|
32 |
EXPOSE 7860
|
33 |
|
nginx.hf.conf
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
# Set PID file location to writable directory
|
2 |
-
pid /
|
3 |
|
4 |
events {
|
5 |
worker_connections 1024;
|
|
|
1 |
# Set PID file location to writable directory
|
2 |
+
pid /tmp/nginx.pid;
|
3 |
|
4 |
events {
|
5 |
worker_connections 1024;
|