Skip to content

Commit

Permalink
build: Ensure npm version compatibility, fix casing warnings (#975)
Browse files Browse the repository at this point in the history
  • Loading branch information
HannesOberreiter authored Dec 18, 2024
1 parent ca3b0a7 commit b6c5522
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:18-alpine as server-dependencies
FROM node:18-alpine AS server-dependencies

RUN apk -U upgrade \
&& apk add build-base python3 \
Expand All @@ -8,7 +8,7 @@ WORKDIR /app

COPY server/package.json server/package-lock.json ./

RUN npm install npm@latest --global \
RUN npm install npm --global \
&& npm install pnpm --global \
&& pnpm import \
&& pnpm install --prod
Expand All @@ -19,7 +19,7 @@ WORKDIR /app

COPY client/package.json client/package-lock.json ./

RUN npm install npm@latest --global \
RUN npm install npm --global \
&& npm install pnpm --global \
&& pnpm import \
&& pnpm install --prod
Expand Down
4 changes: 2 additions & 2 deletions config/development/Dockerfile.client
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
FROM node:18-alpine as server-dependencies
FROM node:18-alpine AS server-dependencies

RUN apk -U upgrade \
&& apk add build-base python3 \
--no-cache

WORKDIR /app/client
COPY package.json package-lock.json /app/client/
RUN npm install npm@latest --global \
RUN npm install npm --global \
&& npm install pnpm --global \
&& pnpm import \
&& pnpm install
Expand Down
4 changes: 2 additions & 2 deletions config/development/Dockerfile.server
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:18-alpine as server-dependencies
FROM node:18-alpine AS server-dependencies

RUN apk -U upgrade \
&& apk add build-base python3 \
Expand All @@ -8,7 +8,7 @@ WORKDIR /app

COPY package.json package-lock.json ./

RUN npm install npm@latest --global \
RUN npm install npm --global \
&& npm install pnpm --global \
&& pnpm import \
&& pnpm install

0 comments on commit b6c5522

Please sign in to comment.