Skip to content

Commit fa092cb

Browse files
committed
fix: use simple hello world Dockerfile for demo
Replace complex Node.js Dockerfile with a simple Alpine-based hello world to avoid dependency installation issues during the demo.
1 parent a071ee5 commit fa092cb

File tree

1 file changed

+7
-17
lines changed

1 file changed

+7
-17
lines changed

.github/workflows/demo-docker.yaml

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -19,25 +19,15 @@ jobs:
1919
- name: Create Sample Dockerfile
2020
run: |
2121
cat > Dockerfile << 'EOF'
22-
FROM node:20-alpine
23-
WORKDIR /app
22+
FROM alpine:latest
2423
25-
# Install dependencies.
26-
RUN apk add --no-cache git
24+
# Create a simple hello world script.
25+
RUN echo '#!/bin/sh' > /hello.sh && \
26+
echo 'echo "Hello from Stickydisk Demo!"' >> /hello.sh && \
27+
echo 'echo "This demonstrates Docker build cache management."' >> /hello.sh && \
28+
chmod +x /hello.sh
2729
28-
# Copy package files.
29-
COPY package.json pnpm-lock.yaml ./
30-
31-
# Install pnpm and dependencies.
32-
RUN npm install -g pnpm && pnpm install --frozen-lockfile
33-
34-
# Copy source code.
35-
COPY . .
36-
37-
# Build the application.
38-
RUN pnpm build
39-
40-
CMD ["node", "dist/main.bundle.mjs"]
30+
CMD ["/hello.sh"]
4131
EOF
4232
4333
- name: Build Docker Image with Cache

0 commit comments

Comments
 (0)