build: update docker alpine version
Update docker alpine version
This commit is contained in:
parent
b56abca979
commit
9752867b84
|
@ -1,5 +1,5 @@
|
||||||
# build environment
|
# build environment
|
||||||
FROM --platform=$BUILDPLATFORM node:16.15.0-alpine3.15 as build-stage
|
FROM --platform=$BUILDPLATFORM node:16.20.2-alpine3.18 as build-stage
|
||||||
RUN mkdir /app && chown -R node:node /app
|
RUN mkdir /app && chown -R node:node /app
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
RUN apk add --no-cache python3 make g++
|
RUN apk add --no-cache python3 make g++
|
||||||
|
@ -13,7 +13,7 @@ ARG VERSION
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
# dependency environment
|
# dependency environment
|
||||||
FROM node:16.15.0-alpine3.15 as dependency-stage
|
FROM node:16.20.2-alpine3.18 as dependency-stage
|
||||||
RUN mkdir /app && chown -R node:node /app
|
RUN mkdir /app && chown -R node:node /app
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
RUN apk add --no-cache python3 make g++
|
RUN apk add --no-cache python3 make g++
|
||||||
|
@ -23,7 +23,7 @@ RUN SKIP_BUILD=true npm ci
|
||||||
RUN npm prune --production
|
RUN npm prune --production
|
||||||
|
|
||||||
# production environment
|
# production environment
|
||||||
FROM node:16.15.0-alpine3.15 as production-stage
|
FROM node:16.20.2-alpine3.18 as production-stage
|
||||||
RUN mkdir /app && chown -R node:node /app
|
RUN mkdir /app && chown -R node:node /app
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
RUN apk add --no-cache tini
|
RUN apk add --no-cache tini
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# build environment
|
# build environment
|
||||||
FROM --platform=$BUILDPLATFORM node:16.15.0-alpine3.15 as build-stage
|
FROM --platform=$BUILDPLATFORM node:16.20.2-alpine3.18 as build-stage
|
||||||
RUN mkdir /app && chown -R node:node /app
|
RUN mkdir /app && chown -R node:node /app
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
RUN apk add --no-cache python3 make g++
|
RUN apk add --no-cache python3 make g++
|
||||||
|
|
Loading…
Reference in New Issue