Stevels commited on
Commit
b0d2bd7
·
verified ·
1 Parent(s): e9a8ba2

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +30 -0
Dockerfile ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM lanol/filecodebox:beta
2
+
3
+ RUN apt-get update && apt-get install -y \
4
+ python3-pip \
5
+ git \
6
+ && rm -rf /var/lib/apt/lists/*
7
+
8
+ RUN pip3 install --no-cache-dir huggingface_hub datasets
9
+
10
+ RUN useradd -m -u 1000 user
11
+
12
+ WORKDIR /app
13
+
14
+ ENV HOME=/home/user \
15
+ PATH=/home/user/.local/bin:$PATH \
16
+ HF_HOME=/app/data/hf_cache \
17
+ PYTHONUNBUFFERED=1
18
+
19
+ RUN mkdir -p /app/data && \
20
+ chown -R user:user /app/data
21
+
22
+ COPY sync_data.sh /app/
23
+ RUN chmod +x /app/sync_data.sh && \
24
+ chown user:user /app/sync_data.sh
25
+
26
+ USER user
27
+
28
+ EXPOSE 12345
29
+
30
+ ENTRYPOINT ["/app/sync_data.sh"]