Skip to content

Commit a115ef2

Browse files
authored
Create Dockerfile
1 parent 16df167 commit a115ef2

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

Tutorials/Dockerfile

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Python base image
2+
3+
FROM python:3.9-slim
4+
5+
6+
7+
# Set the working directory inside the container
8+
9+
WORKDIR /app
10+
11+
12+
13+
# Copy the Python script into the container
14+
15+
COPY code_1.py .
16+
17+
18+
19+
# Install any necessary dependencies
20+
21+
RUN pip install pandas matplotlib scikit-learn
22+
23+
24+
25+
# Command to run the Python script when the container starts
26+
27+
CMD ["python", "code_1.py"]

0 commit comments

Comments
 (0)