Neurolingua
commited on
Commit
•
1508965
1
Parent(s):
240f9fb
Update Dockerfile
Browse files- Dockerfile +16 -9
Dockerfile
CHANGED
@@ -1,10 +1,17 @@
|
|
1 |
-
FROM python:3.9
|
2 |
-
|
3 |
-
WORKDIR /code
|
4 |
-
|
5 |
-
|
6 |
-
RUN pip install --
|
7 |
-
|
8 |
-
|
9 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
CMD ["python", "app.py"]
|
|
|
1 |
+
FROM python:3.9
|
2 |
+
|
3 |
+
WORKDIR /code
|
4 |
+
|
5 |
+
# Upgrade pip first
|
6 |
+
RUN pip install --upgrade pip
|
7 |
+
|
8 |
+
# Copy the requirements file
|
9 |
+
COPY ./requirements.txt /code/requirements.txt
|
10 |
+
|
11 |
+
# Install the dependencies
|
12 |
+
RUN pip install --no-cache-dir -r /code/requirements.txt
|
13 |
+
|
14 |
+
# Copy the rest of the application code
|
15 |
+
COPY . /code
|
16 |
+
|
17 |
CMD ["python", "app.py"]
|