Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Neural MMO
neural-mmo-starter-kit
Commits
968d719c
Commit
968d719c
authored
Jun 17, 2021
by
Siddhartha Laghuvarapu
Browse files
Merge branch 'base-docker-images' into 'master'
Use base docker images See merge request siddhartha/neuralmmo-starter-kit!4
parents
2dfea7b9
b98990e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Dockerfile
View file @
968d719c
FROM
ubuntu:20.04
# Select one of the images based on your case
# FROM aicrowd/base-images:neural-mmo-py38-torch-190
# FROM aicrowd/base-images:neural-mmo-py38-torch-180
# FROM aicrowd/base-images:neural-mmo-py38-torch-171
FROM
aicrowd/base-images:neural-mmo-py38
RUN
apt update
-qq
&&
apt
install
-qq
-y
\
git
\
wget
\
ca-certificates
\
locales
\
g++
\
gcc
\
vim
\
&&
rm
-rf
/var/lib/lists/
*
/var/cache/
*
RUN
locale-gen en_US.UTF-8
ENV
LANG en_US.UTF-8
ENV
LANGUAGE en_US:en
ENV
LC_ALL en_US.UTF-8
# Create user home directory
ENV
USER_NAME aicrowd
ENV
HOME_DIR /home/$USER_NAME
# Replace HOST_UID/HOST_GUID with your user / group id
ENV
HOST_UID 1001
ENV
HOST_GID 1001
ENV
SHELL /bin/bash
RUN
adduser
--disabled-password
\
--gecos
"Default user"
\
--uid
${
HOST_UID
}
\
${
USER_NAME
}
USER
${USER_NAME}
WORKDIR
/home/aicrowd
ENV
CONDA_DIR ${HOME_DIR}/.conda
RUN
wget
-nv
-O
miniconda.sh https://repo.anaconda.com/miniconda/Miniconda3-py38_4.9.2-Linux-x86_64.sh
\
&&
bash miniconda.sh
-b
-p
${
CONDA_DIR
}
\
&&
.
${
CONDA_DIR
}
/etc/profile.d/conda.sh
\
&&
conda clean
-y
-a
\
&&
rm
-rf
miniconda.sh
ENV
PATH ${CONDA_DIR}/bin:${PATH}
RUN
git clone
--single-branch
--depth
=
1
--branch
v1.5-competition https://github.com/jsuarez5341/neural-mmo
\
&&
git clone
--single-branch
--depth
=
1
--branch
v1.5 https://github.com/jsuarez5341/neural-mmo-client neural-mmo/forge/embyr
RUN
ln
-s
neural-mmo/forge forge
\
&&
ln
-s
neural-mmo/projekt projekt
RUN
conda
install
cmake
-y
&&
conda clean
-y
-a
COPY
--chown=1001:1001 requirements.txt ${HOME_DIR}/requirements.txt
RUN
pip
install
-r
requirements.txt
--no-cache-dir
...
...
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