pwi-plata-type 0.2.16 → 0.2.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pwi-plata-type",
3
- "version": "0.2.16",
3
+ "version": "0.2.17",
4
4
  "type": "module",
5
5
  "main": "index.ts",
6
6
  "bin": {
@@ -1,13 +1,18 @@
1
- FROM node:16-alpine
1
+ FROM node:16-alpine AS build
2
2
 
3
3
  WORKDIR /usr/src/app
4
4
 
5
- COPY package*.json ./
5
+ COPY . ./
6
+
7
+ RUN npm ci --only=production && \
8
+ npm run build
9
+
10
+ FROM node:16-alpine AS bin
6
11
 
7
12
  EXPOSE 3050
8
13
 
9
- RUN npm ci --only=production
14
+ WORKDIR /usr/src/app
10
15
 
11
- COPY . ./
16
+ COPY --from=build /usr/src/app/build .
12
17
 
13
18
  CMD [ "npm", "start" ]