Test nginx as part of build
Browse files- 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 . .
|