This repository has been archived by the owner on Dec 15, 2023. It is now read-only.
generated from minerllabs/basalt_2022_competition_submission_template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
LambdaDocker
41 lines (32 loc) · 1.46 KB
/
LambdaDocker
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# In case you don't want to use Dockerfile and build from
# scratch, you can delete simply "Dockerfile" from your repository.
# Additional details on specifying dependencies are available in the README.
# Pre-installed conda and apt based MineRL runtime.
# This is done to save time during the submissions and faster debugging for you.
FROM aicrowd/base-images:minerl-22-base
# Install needed apt packages
ARG DEBIAN_FRONTEND=noninteractive
USER root
COPY apt.txt apt.txt
RUN apt -qq update && xargs -a apt.txt apt -qq install -y --no-install-recommends \
&& rm -rf /var/cache/*
# Set the user and conda environment paths
USER aicrowd
ENV HOME_DIR /home/$USER
ENV CONDA_DEFAULT_ENV="minerl"
ENV PATH /home/aicrowd/.conda/envs/minerl/bin:$PATH
ENV FORCE_CUDA="1"
# Use MineRL environment
SHELL ["conda", "run", "-n", "minerl", "/bin/bash", "-c"]
# bring in the external libs directory
COPY --chown=1001:1001 ./requirements.txt /home/aicrowd/requirements.txt
COPY --chown=1001:1001 ./external_libs/ /home/aicrowd/external_libs/
# Conda environment update
COPY environment.yml environment.yml
RUN conda env update --name minerl -f environment.yml --prune
# lambdalabs uses cu11.6
RUN yes | pip uninstall torch && pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu116
# RUN pip install -e /home/aicrowd/external_libs/vpt/
# RUN pip install -e /home/aicrowd/external_libs/fractal-zero/
# Copy the files
COPY --chown=1001:1001 . /home/aicrowd