diff --git a/config-ui/.dockerignore b/config-ui/.dockerignore new file mode 100644 index 00000000000..b512c09d476 --- /dev/null +++ b/config-ui/.dockerignore @@ -0,0 +1 @@ +node_modules \ No newline at end of file diff --git a/config-ui/Dockerfile b/config-ui/Dockerfile index f9c5970a44c..538e12a8722 100644 --- a/config-ui/Dockerfile +++ b/config-ui/Dockerfile @@ -1,11 +1,8 @@ -FROM node:14-alpine - -COPY package.json /src/package.json -WORKDIR /src -RUN npm i - -COPY . /src - -CMD ["npm", "run", "dev"] - -EXPOSE 4000 +FROM nginx:latest +RUN rm /etc/nginx/conf.d/default.conf +COPY ./nginx.conf /etc/nginx/conf.d/default.conf +WORKDIR /usr/share/nginx/html +RUN rm -rf ./* +COPY ./dist/* ./ +EXPOSE 80 443 +ENTRYPOINT ["nginx", "-g", "daemon off;"] diff --git a/config-ui/nginx.conf b/config-ui/nginx.conf new file mode 100644 index 00000000000..3eed3bc5f55 --- /dev/null +++ b/config-ui/nginx.conf @@ -0,0 +1,9 @@ +server { + listen 80; + server_name localhost; + location / { + root /usr/share/nginx/html; + index index.html; + try_files $uri /index.html; + } +} \ No newline at end of file