We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b969e6d + 58dc15c commit 9c0b118Copy full SHA for 9c0b118
ui/.dockerignore
@@ -0,0 +1,5 @@
1
+.git
2
+*Dockerfile*
3
+*docker-compose*
4
+node_modules
5
+dist
ui/Dockerfile
@@ -1,3 +1,14 @@
+# Build UI in
+FROM node:lts
+
+WORKDIR /ui
+COPY ./package.json .
6
+COPY ./package-lock.json .
7
+RUN npm install
8
+ADD . .
9
10
+RUN npm run build
11
12
# Nginx web server from the official docker registry
13
FROM nginx:1.14.0-alpine
14
@@ -9,4 +20,4 @@ COPY conf /etc/nginx
20
# The static site is built using npm run build
21
# the output of build is stored in the dist dir
22
WORKDIR /usr/share/nginx/html
-COPY ./dist/ /usr/share/nginx/html
23
+COPY --from=0 /ui/dist /usr/share/nginx/html
0 commit comments