Skip to content

Commit de78e41

Browse files
committed
chore: try slim image instead of alpine for dockerfiles
1 parent 55ccb02 commit de78e41

File tree

11 files changed

+21
-21
lines changed

11 files changed

+21
-21
lines changed

localenv/mock-account-servicing-entity/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:20-alpine3.21 AS base
1+
FROM node:20-slim AS base
22

33
WORKDIR /home/rafiki
44

@@ -42,7 +42,7 @@ RUN --mount=type=cache,id=pnpm,target=/pnpm/store \
4242
--frozen-lockfile
4343
RUN pnpm --filter mock-account-servicing-entity build
4444

45-
FROM node:20-alpine3.21 AS runner
45+
FROM node:20-slim AS runner
4646

4747
WORKDIR /home/rafiki
4848

packages/auth/Dockerfile.dev

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
FROM node:20-alpine3.21
1+
FROM node:20-slim
22

3-
RUN adduser -D rafiki
3+
RUN adduser --disabled-password --gecos "" rafiki
44
WORKDIR /home/rafiki
55

66
# Install Corepack and pnpm as the Rafiki user

packages/auth/Dockerfile.prod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:20-alpine3.21 AS base
1+
FROM node:20-slim AS base
22

33
WORKDIR /home/rafiki
44

@@ -44,9 +44,9 @@ RUN --mount=type=cache,id=pnpm,target=/pnpm/store \
4444
--frozen-lockfile
4545
RUN pnpm --filter auth build
4646

47-
FROM node:20-alpine3.21 AS runner
47+
FROM node:20-slim AS runner
4848

49-
RUN adduser -D rafiki
49+
RUN adduser --disabled-password --gecos "" rafiki
5050

5151
WORKDIR /home/rafiki
5252

packages/backend/Dockerfile.dev

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
FROM node:20-alpine3.21
1+
FROM node:20-slim
22

3-
RUN adduser -D rafiki
3+
RUN adduser --disabled-password --gecos "" rafiki
44
WORKDIR /home/rafiki
55

66
# Install Corepack and pnpm as the Rafiki user

packages/backend/Dockerfile.prod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:20-alpine3.21 AS base
1+
FROM node:20-slim AS base
22

33
WORKDIR /home/rafiki
44

@@ -44,10 +44,10 @@ RUN --mount=type=cache,id=pnpm,target=/pnpm/store \
4444
--frozen-lockfile
4545
RUN pnpm --filter backend build
4646

47-
FROM node:20-alpine3.21 AS runner
47+
FROM node:20-slim AS runner
4848

4949
# Since this is from a fresh image, we need to first create the Rafiki user
50-
RUN adduser -D rafiki
50+
RUN adduser --disabled-password --gecos "" rafiki
5151
WORKDIR /home/rafiki
5252

5353
COPY --from=prod-deps /home/rafiki/node_modules ./node_modules

packages/card-service/Dockerfile.dev

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM node:20-alpine3.21
22

3-
RUN adduser -D rafiki
3+
RUN adduser --disabled-password --gecos "" rafiki
44
WORKDIR /home/rafiki
55

66
# Install Corepack and pnpm as the Rafiki user

packages/card-service/Dockerfile.prod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ RUN pnpm --filter card-service build
4242
FROM node:20-alpine3.21 AS runner
4343

4444
# Since this is from a fresh image, we need to first create the Rafiki user
45-
RUN adduser -D rafiki
45+
RUN adduser --disabled-password --gecos "" rafiki
4646
WORKDIR /home/rafiki
4747

4848
COPY --from=prod-deps /home/rafiki/node_modules ./node_modules

packages/frontend/Dockerfile.dev

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
FROM node:20-alpine3.21 AS base
1+
FROM node:20-slim AS base
22

3-
RUN adduser -D rafiki
3+
RUN adduser --disabled-password --gecos "" rafiki
44
WORKDIR /home/rafiki
55

66
# Install Corepack and pnpm as the Rafiki user

packages/frontend/Dockerfile.prod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:20-alpine3.21 AS base
1+
FROM node:20-slim AS base
22

33
WORKDIR /home/rafiki
44

@@ -40,8 +40,8 @@ RUN --mount=type=cache,id=pnpm,target=/pnpm/store \
4040
--frozen-lockfile
4141
RUN pnpm --filter frontend build
4242

43-
FROM node:20-alpine3.21 AS runner
44-
RUN adduser -D rafiki
43+
FROM node:20-slim AS runner
44+
RUN adduser --disabled-password --gecos "" rafiki
4545
WORKDIR /home/rafiki
4646

4747
COPY --from=prod-deps /home/rafiki/node_modules ./node_modules

packages/point-of-sale/Dockerfile.dev

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM node:20-alpine3.21
22

3-
RUN adduser -D rafiki
3+
RUN adduser --disabled-password --gecos "" rafiki
44
WORKDIR /home/rafiki
55

66
# Install Corepack and pnpm as the Rafiki user

0 commit comments

Comments
 (0)