Dockerfile for windows local installation and running of project
Browse files- Dockerfile +22 -0
Dockerfile
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Use an official Python runtime as a parent image
|
2 |
+
FROM python:3.10.11-slim
|
3 |
+
|
4 |
+
# Set the working directory in the container
|
5 |
+
WORKDIR /encrypted_sentiment_analysis
|
6 |
+
|
7 |
+
RUN apt-get update && apt-get install -y \
|
8 |
+
binutils \
|
9 |
+
build-essential \
|
10 |
+
&& rm -rf /var/lib/apt/lists/*
|
11 |
+
|
12 |
+
|
13 |
+
COPY requirements.txt .
|
14 |
+
|
15 |
+
# Install any needed packages specified in requirements.txt
|
16 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
17 |
+
|
18 |
+
# Copy the current directory contents into the container at /app
|
19 |
+
COPY . .
|
20 |
+
|
21 |
+
# Run app.py when the container launches
|
22 |
+
CMD ["python", "app.py"]
|