-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
50 lines (41 loc) · 1.54 KB
/
Dockerfile
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
42
43
44
45
46
47
48
49
50
# Local Usage:
# ```
# docker build -t ghcr.io/cmpe-491/first-image:v6 .
# docker push ghcr.io/cmpe-491/first-image:v6
# ```""
# Get into server
# ssh [email protected]
# Send file to remote server:
# scp training_script.sh [email protected]:/users/harun.ergen
# Get file from remote server:
# scp ssh [email protected]:/users/harun.ergen/slurm-1776.out .
# Get folder from remote server:
# scp -r ssh [email protected]:/users/harun.ergen/first_trial/trial/test_data/no_gif .
FROM nvidia/cuda:11.6.2-devel-ubuntu20.04
LABEL maintainer="Abdullah Susuz"
ENV LANG=C.UTF-8 LC_ALL=C.UTF-8
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
&& apt-get -y install --no-install-recommends \
git \
wget \
cmake \
ninja-build \
build-essential \
python3 \
python3-dev \
python3-pip \
python3-venv \
python-is-python3 \
python3-opencv \
&& apt-get autoremove -y && apt-get clean -y && rm -rf /var/lib/apt/lists/*
RUN python3 -m pip install --upgrade pip && \
python3 -m venv /opt/python3/venv/base
COPY requirements.txt /opt/python3/venv/base/
RUN /opt/python3/venv/base/bin/python3 -m pip install --upgrade pip
RUN /opt/python3/venv/base/bin/python3 -m pip install wheel
RUN /opt/python3/venv/base/bin/python3 -m pip install -r /opt/python3/venv/base/requirements.txt
COPY snowification/ /opt/python3/venv/base/
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
# Set entrypoint to bash
ENTRYPOINT ["/entrypoint.sh"]