-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdockerfile
More file actions
27 lines (26 loc) · 784 Bytes
/
dockerfile
File metadata and controls
27 lines (26 loc) · 784 Bytes
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
FROM python:3.10.6
RUN apt update
# pyenv dependencies
RUN apt install -y libsqlite3-dev liblzma-dev libctypes-ocaml libreadline-dev libbz2-dev
# fuse dependencies
RUN apt install -y libfuse3-dev fuse3
RUN useradd -m --uid 5087 felix
ENV HOME="/home/felix"
USER felix
RUN curl https://pyenv.run | /bin/bash
ENV PYENV_ROOT="$HOME/.pyenv"
ENV PATH="$PYENV_ROOT/bin:$PATH"
USER root
ADD ./requirements.txt /app/
RUN chown -R felix:felix /app
RUN mkdir /venv
RUN chown -R felix:felix /venv
USER felix
RUN mkdir -p /home/felix/projects/uni/phd/kisz/ersa/data
RUN python -m venv /venv
RUN /venv/bin/pip3 install -r /app/requirements.txt
RUN /venv/bin/pip3 install git+https://github.com/sirexeclp/nvidia-ml-py3.git
# ENV HOME="/root"
STOPSIGNAL SIGINT
USER felix
ENTRYPOINT ["/app/run.sh"]