mosha255 commited on
Commit
ce47262
·
unverified ·
1 Parent(s): 24540ba

Test nginx as part of build

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -1
Dockerfile CHANGED
@@ -23,7 +23,7 @@ RUN pip install --no-cache-dir -r requirements.txt \
23
  COPY nginx.conf /etc/nginx/sites-enabled/app.conf
24
 
25
  # Remove default config and Test nginx
26
- RUN rm /etc/nginx/sites-enabled/default && nginx -t
27
 
28
  # Copy the rest of the application code into the container
29
  COPY . .
 
23
  COPY nginx.conf /etc/nginx/sites-enabled/app.conf
24
 
25
  # Remove default config and Test nginx
26
+ RUN rm /etc/nginx/sites-enabled/default && nginx -t && service nginx start
27
 
28
  # Copy the rest of the application code into the container
29
  COPY . .