Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
lm-evaluation-harness
Commits
60281778
Commit
60281778
authored
Jun 28, 2023
by
Shas S
Browse files
Dockerfile added
parent
72b7f0c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
Dockerfile
Dockerfile
+30
-0
No files found.
Dockerfile
0 → 100644
View file @
60281778
FROM
nvidia/cuda:11.2.0-cudnn8-runtime-ubuntu20.04
### Install python 3.10 and set it as default python interpreter
RUN
apt update
&&
apt
install
software-properties-common
-y
&&
\
add-apt-repository ppa:deadsnakes/ppa
-y
&&
apt update
&&
\
apt
install
curl
-y
&&
\
apt
install
python3.10
-y
&&
\
update-alternatives
--install
/usr/bin/python3 python3 /usr/bin/python3.10 1
&&
\
update-alternatives
--install
/usr/bin/python python /usr/bin/python3.10 1
&&
\
apt
install
python3.10-venv python3.10-dev
-y
&&
\
curl
-Ss
https://bootstrap.pypa.io/get-pip.py | python3.10
&&
\
apt-get clean
&&
rm
-rf
/var/lib/apt/lists/
### COpy files
COPY
. /lm-evaluation-harness/
### Set working directory
WORKDIR
/lm-evaluation-harness
### Install requirements
RUN
pip
install
--no-cache-dir
-e
.
### Run bash
CMD
["/bin/bash"]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment