diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..de4d1f0 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,2 @@ +dist +node_modules diff --git a/projects/market/Dockerfile b/Dockerfile similarity index 70% rename from projects/market/Dockerfile rename to Dockerfile index a5956fa..9d951f7 100644 --- a/projects/market/Dockerfile +++ b/Dockerfile @@ -7,8 +7,9 @@ COPY package*.json ./ RUN npm install COPY . . ARG selene_env -RUN npm run build-${selene_env} +ARG application_name +RUN npm run build-${selene_env} -- --project=${application_name} # STAGE TWO: build the web server and copy the compiled angular app to it. FROM nginx:latest -COPY --from=build /usr/src/app/dist/mycroft-marketplace /usr/share/nginx/html +COPY --from=build /usr/src/app/dist/${application_name} /usr/share/nginx/html