Skip to content

Commit 0569934

Browse files
committed
Docker cleanup
Signed-off-by: Dmytro Rashko <[email protected]>
1 parent 683f697 commit 0569934

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

mcp/Dockerfile

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ ENV NODE_PATH=/app/node_modules
1616
RUN apk update && apk add --no-cache \
1717
nodejs \
1818
ca-certificates \
19-
&& update-ca-certificates \
19+
&& update-ca-certificates
2020

2121
WORKDIR /app
2222

@@ -39,11 +39,11 @@ RUN echo "Building for platform: $TARGETPLATFORM" && \
3939
python3 \
4040
sqlite-dev \
4141
unzip && \
42-
echo "Installing dependencies including dev dependencies" && \
42+
echo "🤖 Installing ..." && \
4343
npm ci --include=dev && \
44-
echo "Building application" && \
44+
echo "🤖 Building ..." && \
4545
npm run build && \
46-
echo "Cleaning up build... " && \
46+
echo "🤖 Cleaning up..." && \
4747
npm prune --production && \
4848
apk del \
4949
bash \
@@ -57,14 +57,12 @@ RUN echo "Building for platform: $TARGETPLATFORM" && \
5757
unzip && \
5858
rm -rf /root/.npm /root/.node-gyp /root/.cache /tmp/* /var/tmp/* && \
5959
rm -rf /app/src /app/package.json /app/package-lock.json /app/tsconfig.json && \
60-
echo "Build completed successfully"
60+
find /app/build/ && \
61+
echo "🤖 Build completed !!!"
6162

62-
# Create non-root user
63-
RUN addgroup -g 1001 -S nodejs && \
64-
adduser -S kagent -u 1001 -G nodejs && \
65-
mkdir -p /app/build
66-
67-
WORKDIR /app
63+
# Create non-root user and verify build directory
64+
RUN addgroup -g 1001 -S nodejs && \
65+
adduser -S kagent -u 1001 -G nodejs
6866

6967
ADD https://doc-sqlite-db.s3.sa-east-1.amazonaws.com/kubernetes.db /app/build/kubernetes.db
7068
ADD https://doc-sqlite-db.s3.sa-east-1.amazonaws.com/istio.db /app/build/istio.db

0 commit comments

Comments
 (0)