Skip to content

Commit 10d622b

Browse files
committed
Fix dockerfile
Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
1 parent a3fe210 commit 10d622b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

hack/common.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ readonly REPO_ROOT_DIR
1010
function build_transform_jsonata_image() {
1111
local image="${KO_DOCKER_REPO}/transform-jsonata:${TAG}"
1212

13+
docker version
14+
1315
docker build \
1416
--platform "linux/amd64" \
1517
--platform "linux/arm64" \

transform-jsonata/Dockerfile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ FROM registry.access.redhat.com/ubi9/nodejs-20 AS builder
33
# Set working directory
44
WORKDIR /app
55

6-
# Ensure the working directory has appropriate permissions
7-
RUN mkdir -p /app && chown -R 1001:0 /app
6+
# Switch to non-root user
87
USER 1001
98

109
# Install pnpm globally
@@ -30,8 +29,7 @@ ENV NODE_ENV=production
3029
# Set working directory
3130
WORKDIR /app
3231

33-
# Ensure the working directory has appropriate permissions
34-
RUN mkdir -p /app && chown -R 1001:0 /app
32+
# Switch to non-root user
3533
USER 1001
3634

3735
# Copy built files and dependencies

0 commit comments

Comments
 (0)