@@ -25,7 +25,7 @@ FROM node:20.11.1 AS build-arcwebplugin
2525WORKDIR /arcgiswebplugin
2626COPY plugins/arcgis/web-app/package*.json ./
2727RUN npm install
28- COPY --from=build-service /service /arcgisserviceplugin /node_modules/@ngageoint/mage.service
28+ COPY --from=build-service /service /arcgiswebplugin /node_modules/@ngageoint/mage.service
2929COPY plugins/arcgis/web-app/ ./
3030RUN npm run build
3131RUN npm pack ./dist/main
@@ -39,36 +39,63 @@ COPY plugins/arcgis/service/ ./
3939RUN npm run build
4040RUN npm pack
4141
42- FROM node:20.11.1 AS build-imageserviceplugin
43- WORKDIR /imageserviceplugin
44- COPY plugins/image/service/package*.json ./
42+ # FROM node:20.11.1 AS build-imageserviceplugin
43+ # WORKDIR /imageserviceplugin
44+ # COPY plugins/image/service/package*.json ./
45+ # RUN npm install
46+ # COPY --from=build-service /service /imageserviceplugin/node_modules/@ngageoint/mage.service
47+ # RUN rm -rf /imageserviceplugin/node_modules/@ngageoint/mage.service/node_modules/mongoose
48+ # COPY plugins/image/service/ ./
49+ # RUN npm run build
50+ # RUN npm pack
51+
52+ FROM node:20.11.1 AS build-sftpserviceplugin
53+ WORKDIR /sftpserviceplugin
54+ COPY plugins/sftp/service/package*.json ./
55+ RUN ls -la /sftpserviceplugin
56+ RUN cat package.json
57+ RUN npm cache clean --force
4558RUN npm install
46- COPY --from=build-service /service /imageserviceplugin/node_modules/@ngageoint/mage.service
47- RUN rm -rf /imageserviceplugin/node_modules/@ngageoint/mage.service/node_modules/mongoose
48- COPY plugins/image/service/ ./
59+ COPY --from=build-service /service /sftpserviceplugin/node_modules/@ngageoint/mage.service
60+ COPY plugins/sftp/service/ ./
4961RUN npm run build
5062RUN npm pack
5163
64+ FROM node:20.11.1 AS build-sftpwebplugin
65+ # Build sftp service plugin
66+ WORKDIR /sftpwebplugin
67+ COPY plugins/sftp/web/package*.json ./
68+ RUN npm install
69+ COPY plugins/sftp/web/ ./
70+ RUN npm run build
71+ RUN npm pack ./dist/admin
72+
5273# Build instance
5374FROM node:20.11.1 AS build-instance
5475COPY --from=build-service /service/ngageoint*.tgz /service/
5576COPY --from=build-webapp /web-app/ngageoint*.tgz /web-app/
5677COPY --from=build-arcwebplugin /arcgiswebplugin/ngageoint*.tgz /arcgiswebplugin/
5778COPY --from=build-arcserviceplugin /arcgisserviceplugin/ngageoint*.tgz /arcgisserviceplugin/
58- COPY --from=build-imageserviceplugin /imageserviceplugin/ngageoint*.tgz /imageserviceplugin/
79+ COPY --from=build-sftpwebplugin /sftpwebplugin/ngageoint*.tgz /sftpwebplugin/
80+ COPY --from=build-sftpserviceplugin /sftpserviceplugin/ngageoint*.tgz /sftpserviceplugin/
81+ # COPY --from=build-imageserviceplugin /imageserviceplugin/ngageoint*.tgz /imageserviceplugin/
5982
6083WORKDIR /instance
61- RUN npm install ../service/ngageoint-mage.service*.tgz \
62- npm install ../web-app/ngageoint-mage.web-app*.tgz \
63- npm install ../arcgiswebplugin/ngageoint*.tgz \
64- npm install ../arcgisserviceplugin/ngageoint*.tgz \
65- npm install ../imageserviceplugin/ngageoint*.tgz
84+ RUN ls -la ../sftpwebplugin
85+ RUN npm install ../sftpwebplugin/ngageoint*.tgz
86+ RUN npm install ../sftpserviceplugin/ngageoint*.tgz
87+ RUN npm install ../service/ngageoint-mage.service*.tgz
88+ RUN npm install ../web-app/ngageoint-mage.web-app*.tgz
89+ RUN npm install ../arcgiswebplugin/ngageoint*.tgz
90+ RUN npm install ../arcgisserviceplugin/ngageoint*.tgz
6691
6792
6893ENV NODE_PATH=./node_modules
6994ENTRYPOINT [ \
7095 "./node_modules/.bin/mage.service" , \
7196 "--plugin" , "@ngageoint/mage.image.service" , \
7297 "--plugin" , "@ngageoint/mage.arcgis.service" , \
98+ "--plugin" , "@ngageoint/mage.sftp.service" , \
99+ "--web-plugin" , "@ngageoint/mage.sftp.web" , \
73100 "--web-plugin" , "@ngageoint/mage.arcgis.web-app" \
74101 ]
0 commit comments