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: steps:
fetch_git_submodules: fetch_git_submodules:
image: node:alpine image: node:20-alpine
commands: commands:
- apk add git - apk add git
- git submodule init - git submodule init
@ -8,17 +8,17 @@ steps:
# - git fetch --tags # - git fetch --tags
yarn: yarn:
image: node:alpine image: node:20-alpine
commands: commands:
- yarn - yarn
yarn_lint: yarn_lint:
image: node:alpine image: node:20-alpine
commands: commands:
- yarn lint - yarn lint
yarn_build_dev: yarn_build_dev:
image: node:alpine image: node:20-alpine
commands: commands:
- yarn build:dev - 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 apk update && apk add curl yarn python3 build-base gcc wget git --no-cache
RUN curl -sf https://gobinaries.com/tj/node-prune | sh 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.*' 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 RUN apk update && apk add curl --no-cache
COPY --from=builder /usr/src/app/dist /app/dist COPY --from=builder /usr/src/app/dist /app/dist
COPY --from=builder /usr/src/app/node_modules /app/node_modules 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 RUN apk update && apk add curl yarn python3 build-base gcc wget git --no-cache
WORKDIR /usr/src/app WORKDIR /usr/src/app
@ -28,7 +28,7 @@ RUN echo "export const VERSION = 'dev';" > "src/shared/version.ts"
RUN yarn --prefer-offline RUN yarn --prefer-offline
RUN yarn build:dev 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/dist /app/dist
COPY --from=builder /usr/src/app/node_modules /app/node_modules COPY --from=builder /usr/src/app/node_modules /app/node_modules