File size: 568 Bytes
99101a1
 
 
 
 
 
 
 
aac67af
99101a1
 
 
cb95c73
99101a1
29220f6
99101a1
dc4a3d7
a271d4e
dc4a3d7
 
de02fe6
0bec2eb
5082ba6
 
99101a1
 
2a1e2e2
a69042d
99101a1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM  --platform=linux/amd64 tensorflow/tensorflow:latest

WORKDIR /usr/local/bin

COPY selection.py .

COPY requirements.txt .

COPY --chown=user:user train.json .

RUN pip install kaggle

COPY kaggle.json /.kaggle/

RUN chmod 777 /.kaggle/kaggle.json

# Set up cache directories with appropriate permissions
RUN mkdir -p /.cache && chmod -R 777 /.cache

# Change ownership of working directory (if necessary)
RUN chown -R root:root /usr/local/bin

RUN pip install transformers

RUN pip install -r requirements.txt



CMD ["python", "./selection.py","--port", "7860"]