kltn20133118 commited on
Commit
0aa4d37
·
verified ·
1 Parent(s): 20449a8

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -5
Dockerfile CHANGED
@@ -1,17 +1,17 @@
1
  FROM python:3.11
2
 
3
- # Thiết lập thư mục làm việc
4
  WORKDIR /code
 
 
5
 
6
- # Cài đặt các gói cần thiết
7
- RUN apt-get update && apt-get install -y ffmpeg libsm6 libxext6 poppler-utils
8
 
9
- # Tạo các thư mục cần thiết
10
  RUN mkdir -p /code/temp
11
  RUN mkdir -p /nltk_data
12
 
 
13
 
14
- # Thiết lập quyền truy cập
15
  RUN chmod -R 777 /nltk_data
16
  RUN chmod -R 777 /code
17
  RUN chmod -R 777 /code/temp
 
1
  FROM python:3.11
2
 
 
3
  WORKDIR /code
4
+ WORKDIR /code/temp
5
+ WORKDIR /nltk_data
6
 
7
+ RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 -y
 
8
 
9
+ RUN mkdir -p /code
10
  RUN mkdir -p /code/temp
11
  RUN mkdir -p /nltk_data
12
 
13
+ USER root
14
 
 
15
  RUN chmod -R 777 /nltk_data
16
  RUN chmod -R 777 /code
17
  RUN chmod -R 777 /code/temp