File size: 614 Bytes
f5d19d5
 
 
 
 
 
 
 
 
 
 
 
 
d5a1e40
 
f5d19d5
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM ubuntu:22.04

# Update the components and install deps
RUN apt update && apt -y upgrade && \
    apt install -y git nodejs npm

# Set up a new user named "user" with user ID 1000
RUN useradd -m -u 1000 user && \
    chmod -R 777 /opt

# Switch to the "user" user
USER user

# Force rebuild
ADD "https://www.random.org/cgi-bin/randbyte?nbytes=10&format=h" skipcache
RUN git clone https://huggingface.co/datasets/fxmarty/transformers-regressions /opt/transformers-regressions && \
    cd /opt/transformers-regressions/dana && \
    npm install

WORKDIR /opt/transformers-regressions/dana

CMD ["npm", "start"]