forked from pagopa/io-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (18 loc) · 678 Bytes
/
Dockerfile
File metadata and controls
27 lines (18 loc) · 678 Bytes
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
FROM node:18.13.0 as builder
WORKDIR /usr/src/app
COPY / /usr/src/app/
RUN yarn install \
&& yarn predeploy
FROM node:18.13.0-alpine
LABEL maintainer="https://pagopa.gov.it"
# Install major CA certificates to cover
# https://github.com/SparebankenVest/azure-key-vault-to-kubernetes integration
RUN apk --no-cache add ca-certificates
WORKDIR /usr/src/app
COPY /package.json /usr/src/app/package.json
COPY /public /usr/src/app/public
COPY --from=builder /usr/src/app/dist /usr/src/app/dist
COPY --from=builder /usr/src/app/openapi /usr/src/app/openapi
COPY --from=builder /usr/src/app/node_modules /usr/src/app/node_modules
EXPOSE 80
CMD ["node", "dist/src/server.js"]