-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
38 lines (27 loc) · 1.02 KB
/
Dockerfile
File metadata and controls
38 lines (27 loc) · 1.02 KB
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
#ARG IMAGE=pytorch/pytorch:2.0.1-cuda11.7-cudnn8-runtime
ARG IMAGE=nvcr.io/nvidia/pytorch:23.10-py3
#ARG IMAGE=nvcr.io/nvidia/pytorch:22.05-py3
#ARG IMAGE=nvcr.io/nvidia/pytorch:21.12-py3
#ARG IMAGE=nvcr.io/nvidia/pytorch:20.12-py3
ARG GITHUB_TOKEN=none
FROM $IMAGE
# settings from upf: https://guiesbibtic.upf.edu/recerca/hpc/create-docker-image
MAINTAINER Lonce Wyse "https://registry.sb.upf.edu"
LABEL authors="Lonce Wyse lonce.wyse@upf.edu"
LABEL description="environment for DL training of MTCRNN"
COPY . /app
WORKDIR /app
RUN echo machine github.com login ${GITHUB_TOKEN} > ~/.netrc
COPY requirements.txt /requirements.txt
RUN apt update && apt install -y git
# install the package
# RUN pip install llvmlite --ignore-installed
RUN pip install --upgrade -r requirements.txt
ARG USER_ID
ARG GROUP_ID
RUN addgroup --gid $GROUP_ID user
RUN adduser --disabled-password --gecos '' --uid $USER_ID --gid $GROUP_ID user
USER user
# default command will launch JupyterLab server for development
ENTRYPOINT /usr/bin/bash
#CMD ["bash"]