Trying node:20-alpine

This commit is contained in:
Dessalines 2023-10-19 20:43:59 -04:00
parent c4f38fba07
commit e4388b13f6
3 changed files with 8 additions and 8 deletions

View file

@ -1,6 +1,6 @@
steps:
fetch_git_submodules:
image: node:alpine
image: node:20-alpine
commands:
- apk add git
- git submodule init
@ -8,17 +8,17 @@ steps:
# - git fetch --tags
yarn:
image: node:alpine
image: node:20-alpine
commands:
- yarn
yarn_lint:
image: node:alpine
image: node:20-alpine
commands:
- yarn lint
yarn_build_dev:
image: node:alpine
image: node:20-alpine
commands:
- yarn build:dev

View file

@ -1,4 +1,4 @@
FROM node:alpine as builder
FROM node:20-alpine as builder
RUN apk update && apk add curl yarn python3 build-base gcc wget git --no-cache
RUN curl -sf https://gobinaries.com/tj/node-prune | sh
@ -38,7 +38,7 @@ RUN rm -rf ./node_modules/npm
RUN du -sh ./node_modules/* | sort -nr | grep '\dM.*'
FROM node:alpine as runner
FROM node:20-alpine as runner
RUN apk update && apk add curl --no-cache
COPY --from=builder /usr/src/app/dist /app/dist
COPY --from=builder /usr/src/app/node_modules /app/node_modules

View file

@ -1,4 +1,4 @@
FROM node:20.2-alpine as builder
FROM node:20-alpine as builder
RUN apk update && apk add curl yarn python3 build-base gcc wget git --no-cache
WORKDIR /usr/src/app
@ -28,7 +28,7 @@ RUN echo "export const VERSION = 'dev';" > "src/shared/version.ts"
RUN yarn --prefer-offline
RUN yarn build:dev
FROM node:alpine as runner
FROM node:20-alpine as runner
COPY --from=builder /usr/src/app/dist /app/dist
COPY --from=builder /usr/src/app/node_modules /app/node_modules