Skip to content

Commit

Permalink
add Dockerfile (#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
findmyway authored Jan 26, 2021
1 parent 75e4b74 commit 47c1c3f
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
checkpoints/
28 changes: 28 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
ARG IMAGE=nvidia/cuda:10.2-cudnn7-devel-ubuntu18.04
FROM $IMAGE

ENV JULIA_CUDA_USE_BINARYBUILDER=false

# julia

RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive \
apt-get install --yes --no-install-recommends \
# basic stuff
curl ca-certificates && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

# NOTE: this extracts the Julia version (assumed major.minor.patch) from the
# Project.toml to keep it in sync with the GitHub Action workflow.

RUN VERSION=1.5.3 && \
RELEASE=$(echo $VERSION | cut -d '.' -f 1,2 ) && \
curl -s -L https://julialang-s3.julialang.org/bin/linux/x64/${RELEASE}/julia-${VERSION}-linux-x86_64.tar.gz | \
tar -C /usr/local -x -z --strip-components=1 -f -

COPY . /rl

RUN julia -e 'using Pkg; Pkg.dev(url="/rl"); Pkg.instantiate(); Pkg.API.precompile()'

ENTRYPOINT ["/usr/local/bin/julia"]

0 comments on commit 47c1c3f

Please sign in to comment.