- reverted to port 8080 for the docker imagebubble
@@ -4,8 +4,9 @@ MAINTAINER Roman Tarnavski | |||||
RUN apk add --update nginx | RUN apk add --update nginx | ||||
COPY nginx.conf /etc/nginx/ | |||||
ADD ./dist/ /usr/share/nginx/html | ADD ./dist/ /usr/share/nginx/html | ||||
EXPOSE 80 | |||||
EXPOSE 8080 | |||||
CMD nginx -g 'daemon off;' | CMD nginx -g 'daemon off;' |
@@ -55,7 +55,7 @@ To build swagger-ui using a docker container: | |||||
``` | ``` | ||||
docker build -t swagger-ui-builder . | docker build -t swagger-ui-builder . | ||||
docker run -p 80:80 swagger-ui-builder | |||||
docker run -p 80:8080 swagger-ui-builder | |||||
``` | ``` | ||||
This will start Swagger UI at `http://localhost`. | This will start Swagger UI at `http://localhost`. | ||||
@@ -0,0 +1,24 @@ | |||||
worker_processes 1; | |||||
events { | |||||
worker_connections 1024; | |||||
} | |||||
http { | |||||
include mime.types; | |||||
default_type application/octet-stream; | |||||
sendfile on; | |||||
keepalive_timeout 65; | |||||
server { | |||||
listen 8080; | |||||
server_name localhost; | |||||
location / { | |||||
root html; | |||||
index index.html index.htm; | |||||
} | |||||
} | |||||
} |