mirror of
https://github.com/jambonz/jambonz-webapp.git
synced 2026-01-25 02:08:19 +00:00
The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-ALPINE317-OPENSSL-3368755 - https://snyk.io/vuln/SNYK-ALPINE317-OPENSSL-3368755 - https://snyk.io/vuln/SNYK-ALPINE317-OPENSSL-5291795 - https://snyk.io/vuln/SNYK-ALPINE317-OPENSSL-6032385 - https://snyk.io/vuln/SNYK-ALPINE317-OPENSSL-6032385
18 lines
452 B
Docker
18 lines
452 B
Docker
FROM node:18.15-alpine3.16 as builder
|
|
RUN apk update && apk add --no-cache python3 make g++
|
|
COPY . /opt/app
|
|
WORKDIR /opt/app/
|
|
RUN npm install
|
|
RUN npm run build
|
|
RUN npm prune
|
|
|
|
FROM node:18.20.0-alpine as webapp
|
|
RUN apk add curl
|
|
WORKDIR /opt/app
|
|
COPY . /opt/app
|
|
COPY --from=builder /opt/app/node_modules ./node_modules
|
|
COPY --from=builder /opt/app/dist ./dist
|
|
COPY ./entrypoint.sh /entrypoint.sh
|
|
RUN chmod +x /entrypoint.sh
|
|
ENTRYPOINT ["/entrypoint.sh"]
|