multimodalart HF Staff commited on
Commit
3613c3f
·
1 Parent(s): ac7a411

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -0
Dockerfile CHANGED
@@ -3,6 +3,8 @@ FROM python:3.8-slim-buster
3
 
4
  # Set environment variables
5
  ENV PYTHONUNBUFFERED 1
 
 
6
 
7
  # Set work directory in the container
8
  WORKDIR /app
@@ -23,6 +25,9 @@ RUN rm /etc/nginx/sites-enabled/default
23
  COPY nginx.conf /etc/nginx/sites-available/
24
  RUN ln -s /etc/nginx/sites-available/nginx.conf /etc/nginx/sites-enabled/
25
 
 
 
 
26
  # Expose port for the app
27
  EXPOSE 7680
28
 
 
3
 
4
  # Set environment variables
5
  ENV PYTHONUNBUFFERED 1
6
+ ENV API_ENDPOINT=""
7
+ ENV WORKERS=2
8
 
9
  # Set work directory in the container
10
  WORKDIR /app
 
25
  COPY nginx.conf /etc/nginx/sites-available/
26
  RUN ln -s /etc/nginx/sites-available/nginx.conf /etc/nginx/sites-enabled/
27
 
28
+ # Check Nginx config
29
+ RUN service nginx configtest
30
+
31
  # Expose port for the app
32
  EXPOSE 7680
33