Skip to content

Commit 568bdc9

Browse files
committed
fix /ws in container
1 parent 98e5a37 commit 568bdc9

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
**
22
!build/
3+
!nginx.conf

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
FROM nginx:1.11.9-alpine
22

3-
add build/ /usr/share/nginx/html/
3+
ADD build/ /usr/share/nginx/html/
4+
ADD nginx.conf /etc/nginx/conf.d/default.conf

nginx.conf

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
server {
2+
listen 80;
3+
server_name localhost;
4+
5+
root /usr/share/nginx/html;
6+
7+
location / {
8+
index index.html index.htm;
9+
}
10+
11+
location /ws {
12+
rewrite ^/ws/.*$ /workspace.html break;
13+
}
14+
}

0 commit comments

Comments
 (0)