changed COPY path again :(
This commit is contained in:
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
FROM nginx:alpine
|
FROM nginx:alpine
|
||||||
COPY ./public /var/www
|
COPY ./public /usr/share/nginx/html
|
||||||
COPY nginx.conf /etc/nginx/nginx.conf
|
COPY nginx.conf /etc/nginx/nginx.conf
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
ENTRYPOINT ["nginx","-g","daemon off;"]
|
ENTRYPOINT ["nginx","-g","daemon off;"]
|
||||||
|
|||||||
@@ -33,6 +33,7 @@ http {
|
|||||||
index index.html index.htm;
|
index index.html index.htm;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
|
root /usr/share/nginx/html
|
||||||
# First attempt to serve request as file, then
|
# First attempt to serve request as file, then
|
||||||
# as directory, then fall back to redirecting to index.html
|
# as directory, then fall back to redirecting to index.html
|
||||||
try_files $uri $uri/ /index.html;
|
try_files $uri $uri/ /index.html;
|
||||||
|
|||||||
Reference in New Issue
Block a user