DeepDiveDev commited on
Commit
321f5f0
·
verified ·
1 Parent(s): 42c9462

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +24 -0
Dockerfile ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM docker.io/library/python:3.10@sha256:aaacc373f21abcbc67a22d203dab7fb797c016cc4c1daa7d2dec359dcbf4aea1
2
+
3
+ WORKDIR /home/user/app
4
+
5
+ RUN apt-get update && apt-get install -y \
6
+ git git-lfs ffmpeg libsm6 libxext6 cmake rsync libgl1-mesa-glx \
7
+ && rm -rf /var/lib/apt/lists/* \
8
+ && git lfs install
9
+
10
+ RUN apt-get update && apt-get install -y fakeroot \
11
+ && mv /usr/bin/apt-get /usr/bin/.apt-get \
12
+ && echo '#!/usr/bin/env sh\nfakeroot /usr/bin/.apt-get $@' > /usr/bin/apt-get \
13
+ && chmod +x /usr/bin/apt-get \
14
+ && rm -rf /var/lib/apt/lists/* \
15
+ && useradd -m -u 1000 user
16
+
17
+ COPY --chown=1000:1000 --from=root / /
18
+
19
+ # Upgrade pip
20
+ RUN pip install --no-cache-dir --upgrade pip
21
+
22
+ # Install requirements
23
+ RUN --mount=target=/tmp/requirements.txt,source=requirements.txt \
24
+ pip install --no-cache-dir -r /tmp/requirements.txt