Commit
·
3ae8b30
1
Parent(s):
0172758
update
Browse files- Dockerfile +8 -2
Dockerfile
CHANGED
|
@@ -11,8 +11,14 @@ RUN pip install --no-cache-dir jupyter
|
|
| 11 |
RUN mkdir -p /.local && chmod 777 /.local
|
| 12 |
RUN mkdir -p /app && chmod 777 /app
|
| 13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
# Mở cổng 7860, nơi Jupyter sẽ chạy
|
| 15 |
EXPOSE 7860
|
| 16 |
|
| 17 |
-
# Chạy lệnh để khởi động Jupyter Server
|
| 18 |
-
CMD ["jupyter", "notebook", "--ip=0.0.0.0", "--port=7860", "--allow-root"]
|
|
|
|
| 11 |
RUN mkdir -p /.local && chmod 777 /.local
|
| 12 |
RUN mkdir -p /app && chmod 777 /app
|
| 13 |
|
| 14 |
+
# Sao chép tệp requirements.txt vào thư mục làm việc
|
| 15 |
+
COPY requirements.txt .
|
| 16 |
+
|
| 17 |
+
# Cài đặt các dependencies từ requirements.txt
|
| 18 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
| 19 |
+
|
| 20 |
# Mở cổng 7860, nơi Jupyter sẽ chạy
|
| 21 |
EXPOSE 7860
|
| 22 |
|
| 23 |
+
# Chạy lệnh để khởi động Jupyter Server với token cứng
|
| 24 |
+
CMD ["jupyter", "notebook", "--ip=0.0.0.0", "--port=7860", "--allow-root", "--NotebookApp.token='0429d4776d1540fcda06f9fe57bdc122c2cbd7ea4f78ea76'"]
|