Files
EgleH a75ea8fe5c Upgrade legacy app with new node image (#207)
This PR upgrades node base image to node:18.14.0-alpine3.16

This fixes:
Critical vulnerability:
CWE-843: Access of Resource Using Incompatible Type ('Type Confusion')

High vulnerability:
CWE-416: Double Free
CWE-416: Use After Free
2023-02-21 08:26:12 -05:00

24 lines
385 B
Docker

FROM --platform=linux/amd64 node:18.14.0-alpine3.16 as base
RUN apk --update --no-cache add --virtual .builds-deps build-base curl python3
WORKDIR /opt/app/
FROM base as build
COPY package.json package-lock.json ./
RUN npm ci
COPY . .
RUN npm run build
FROM base
COPY --from=build /opt/app /opt/app/
RUN chmod +x /opt/app/entrypoint.sh
ENTRYPOINT ["/opt/app/entrypoint.sh"]