mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-23 15:05:51 +00:00
Trying node:20-alpine
This commit is contained in:
parent
c4f38fba07
commit
e4388b13f6
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue