Skip to content

Commit

Permalink
Update dockerfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
popzxc committed Sep 16, 2020
1 parent e2b6687 commit e77db19
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
4 changes: 0 additions & 4 deletions docker/nginx/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
FROM nginx

RUN mkdir -p /usr/share/nginx/html/client/dist
#COPY js/client/index.html /usr/share/nginx/html/client/
COPY js/client/dist/ /usr/share/nginx/html/client/

RUN mkdir -p /usr/share/nginx/html/explorer/dist
COPY js/explorer/dist/ /usr/share/nginx/html/explorer/

Expand Down
10 changes: 0 additions & 10 deletions docker/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,6 @@ http {

index index.html;

location ~ ^/client {
include /etc/nginx/mime.types;
types {
application/wasm wasm;
}

root /usr/share/nginx/html/; # the directory (/admin) will be appended to this, so don't include it in the root otherwise it'll look for /var/www/html/www_new/admin/admin
try_files $uri /client/index.html; # try_files will need to be relative to root
}

location ~ ^/ {
include /etc/nginx/mime.types;
types {
Expand Down

0 comments on commit e77db19

Please sign in to comment.