File tree Expand file tree Collapse file tree 1 file changed +7
-17
lines changed
Expand file tree Collapse file tree 1 file changed +7
-17
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments