Browse Source

modified: Dockerfile

xf 1 year ago
parent
commit
4d5fd2f0e0
1 changed files with 3 additions and 1 deletions
  1. 3 1
      Dockerfile

+ 3 - 1
Dockerfile

@@ -2,4 +2,6 @@ FROM nginx:stable
 
 COPY nginx.conf /etc/nginx/nginx.conf
 
-COPY ./ /usr/share/nginx/html
+COPY ./ /usr/share/nginx/html
+
+CMD ["sh", "-c", "sed -i \"s@<html@<html data-env=\"$API_ENV\"@\" /usr/share/nginx/html/index.html; nginx -g \"daemon off;\""]