Rami commited on
Commit
49c3394
1 Parent(s): b735f65

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +19 -0
Dockerfile ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9
2
+
3
+ RUN useradd -m -u 1000 user
4
+ USER user
5
+ # Set home to the user's home directory
6
+ ENV HOME=/home/user \
7
+ PATH=/home/user/.local/bin:$PATH
8
+ WORKDIR $HOME/app
9
+ # Copy the current directory contents into the container at $HOME/app setting the owner to the user
10
+ COPY --chown=user . $HOME/app
11
+ ADD --chown=user ./.zeno_cache $HOME/app/.zeno_cache
12
+ RUN chown user:user -R $HOME/app
13
+
14
+ COPY ./requirements.txt /code/requirements.txt
15
+
16
+ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
17
+
18
+
19
+ CMD ["zeno", "config.toml"]