LeeSek commited on
Commit
f5afad6
·
verified ·
1 Parent(s): e9b8340

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +14 -3
README.md CHANGED
@@ -72,11 +72,11 @@ print(f"Prediction: {label} — Probabilities: good={probs[0]:.3f}, bad={probs[1
72
 
73
  ---
74
 
75
- ### 📄 Step 2 — Create a test Dockerfile
76
 
77
- Save the following as `Dockerfile`:
78
 
79
- ```dockerfile
80
  FROM node:18
81
  WORKDIR /app
82
  COPY . .
@@ -84,6 +84,17 @@ RUN npm install
84
  CMD ["node", "index.js"]
85
  ```
86
 
 
 
 
 
 
 
 
 
 
 
 
87
  ---
88
 
89
  ### ▶️ Step 3 — Run the prediction
 
72
 
73
  ---
74
 
75
+ ### 📄 Step 2 — Create good and bad Dockerfile
76
 
77
+ Good:
78
 
79
+ ```docker
80
  FROM node:18
81
  WORKDIR /app
82
  COPY . .
 
84
  CMD ["node", "index.js"]
85
  ```
86
 
87
+ Bad:
88
+
89
+ ```docker
90
+ FROM ubuntu:latest
91
+ RUN apt-get install python3
92
+ ADD . /app
93
+ WORKDIR /app
94
+ RUN pip install flask
95
+ CMD python3 app.py
96
+ ```
97
+
98
  ---
99
 
100
  ### ▶️ Step 3 — Run the prediction