-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile.am_cleanup
28 lines (22 loc) · 1.04 KB
/
Dockerfile.am_cleanup
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM node:18-alpine AS builder
WORKDIR /usr/local/apps/stela/
COPY package.json ./
COPY tsconfig.build.json ./
COPY tsconfig.json ./
COPY jest.config.js ./
COPY packages ./packages
RUN npm install -g [email protected]
RUN npm install
RUN npm install -ws
RUN npm run build -ws
FROM node:18-alpine AS final
WORKDIR /usr/local/apps/stela/
COPY --from=builder /usr/local/apps/stela/packages/archivematica_cleanup/dist ./packages/archivematica_cleanup/dist
COPY --from=builder /usr/local/apps/stela/packages/archivematica_cleanup/package.json ./packages/archivematica_cleanup/package.json
COPY --from=builder /usr/local/apps/stela/packages/logger/dist ./packages/logger/dist
COPY --from=builder /usr/local/apps/stela/packages/logger/package.json ./packages/logger/package.json
COPY --from=builder /usr/local/apps/stela/package.json ./package.json
COPY --from=builder /usr/local/apps/stela/package-lock.json ./package-lock.json
RUN npm install -g [email protected]
RUN npm install --workspace @stela/archivematica_cleanup
CMD node packages/archivematica_cleanup/dist/index.js