1- # Build service
21FROM node:20.11.1 AS build-service
32
43WORKDIR /service
@@ -25,7 +24,7 @@ FROM node:20.11.1 AS build-arcwebplugin
2524WORKDIR /arcgiswebplugin
2625COPY plugins/arcgis/web-app/package*.json ./
2726RUN npm install
28- COPY --from=build-service /service /arcgisserviceplugin /node_modules/@ngageoint/mage.service
27+ COPY --from=build-service /service /arcgiswebplugin /node_modules/@ngageoint/mage.service
2928COPY plugins/arcgis/web-app/ ./
3029RUN npm run build
3130RUN npm pack ./dist/main
@@ -39,36 +38,63 @@ COPY plugins/arcgis/service/ ./
3938RUN npm run build
4039RUN npm pack
4140
42- FROM node:20.11.1 AS build-imageserviceplugin
43- WORKDIR /imageserviceplugin
44- COPY plugins/image/service/package*.json ./
41+ # FROM node:20.11.1 AS build-imageserviceplugin
42+ # WORKDIR /imageserviceplugin
43+ # COPY plugins/image/service/package*.json ./
44+ # RUN npm install
45+ # COPY --from=build-service /service /imageserviceplugin/node_modules/@ngageoint/mage.service
46+ # RUN rm -rf /imageserviceplugin/node_modules/@ngageoint/mage.service/node_modules/mongoose
47+ # COPY plugins/image/service/ ./
48+ # RUN npm run build
49+ # RUN npm pack
50+
51+ FROM node:20.11.1 AS build-sftpserviceplugin
52+ WORKDIR /sftpserviceplugin
53+ COPY plugins/sftp/service/package*.json ./
54+ RUN ls -la /sftpserviceplugin
55+ RUN cat package.json
56+ RUN npm cache clean --force
4557RUN 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/ ./
58+ COPY --from=build-service /service /sftpserviceplugin/node_modules/@ngageoint/mage.service
59+ COPY plugins/sftp/service/ ./
4960RUN npm run build
5061RUN npm pack
5162
63+ FROM node:20.11.1 AS build-sftpwebplugin
64+ # Build sftp service plugin
65+ WORKDIR /sftpwebplugin
66+ COPY plugins/sftp/web/package*.json ./
67+ RUN npm install
68+ COPY plugins/sftp/web/ ./
69+ RUN npm run build
70+ RUN npm pack ./dist/admin
71+
5272# Build instance
5373FROM node:20.11.1 AS build-instance
5474COPY --from=build-service /service/ngageoint*.tgz /service/
5575COPY --from=build-webapp /web-app/ngageoint*.tgz /web-app/
5676COPY --from=build-arcwebplugin /arcgiswebplugin/ngageoint*.tgz /arcgiswebplugin/
5777COPY --from=build-arcserviceplugin /arcgisserviceplugin/ngageoint*.tgz /arcgisserviceplugin/
58- COPY --from=build-imageserviceplugin /imageserviceplugin/ngageoint*.tgz /imageserviceplugin/
78+ COPY --from=build-sftpwebplugin /sftpwebplugin/ngageoint*.tgz /sftpwebplugin/
79+ COPY --from=build-sftpserviceplugin /sftpserviceplugin/ngageoint*.tgz /sftpserviceplugin/
80+ # COPY --from=build-imageserviceplugin /imageserviceplugin/ngageoint*.tgz /imageserviceplugin/
5981
6082WORKDIR /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
83+ RUN ls -la ../sftpwebplugin
84+ RUN npm install ../sftpwebplugin/ngageoint*.tgz
85+ RUN npm install ../sftpserviceplugin/ngageoint*.tgz
86+ RUN npm install ../service/ngageoint-mage.service*.tgz
87+ RUN npm install ../web-app/ngageoint-mage.web-app*.tgz
88+ RUN npm install ../arcgiswebplugin/ngageoint*.tgz
89+ RUN npm install ../arcgisserviceplugin/ngageoint*.tgz
6690
6791
6892ENV NODE_PATH=./node_modules
6993ENTRYPOINT [ \
7094 "./node_modules/.bin/mage.service" , \
7195 "--plugin" , "@ngageoint/mage.image.service" , \
7296 "--plugin" , "@ngageoint/mage.arcgis.service" , \
97+ "--plugin" , "@ngageoint/mage.sftp.service" , \
98+ "--web-plugin" , "@ngageoint/mage.sftp.web" , \
7399 "--web-plugin" , "@ngageoint/mage.arcgis.web-app" \
74- ]
100+ ]
0 commit comments