Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
K
keras-smoke-detection
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ar-noc
keras-smoke-detection
Commits
7b1e2798
Commit
7b1e2798
authored
4 years ago
by
Byungheong Jeong
Browse files
Options
Downloads
Patches
Plain Diff
Update Dockerfile
parent
367bb276
No related branches found
No related tags found
No related merge requests found
Pipeline
#10700
failed
4 years ago
Stage: build-and-push
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+17
-23
17 additions, 23 deletions
Dockerfile
with
17 additions
and
23 deletions
Dockerfile
+
17
−
23
View file @
7b1e2798
ARG
cuda_version=10.0
ARG
cudnn_version=7
# FROM nvidia/cuda:${cuda_version}-cudnn${cudnn_version}-devel
FROM
docker:latest
RUN
apt-get update
&&
apt-get
install
-y
apt-transport-https ca-certificates curl software-properties-common
# RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg
# RUN apt-get update && add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic test"
# RUN apt-get update && apt-get install -y docker-ce
FROM
nvidia/cuda:${cuda_version}-cudnn${cudnn_version}-devel
# Install system packages
#
RUN apt-get update && apt-get install -y --no-install-recommends \
#
bzip2 \
#
g++ \
#
git \
#
graphviz \
#
libgl1-mesa-glx \
#
libhdf5-dev \
#
sudo\
#
openmpi-bin \
#
xvfb \
#
screen \
#
wget && \
#
rm -rf /var/lib/apt/lists/*
RUN
apt-get update
&&
apt-get
install
-y
--no-install-recommends
\
bzip2
\
g++
\
git
\
graphviz
\
libgl1-mesa-glx
\
libhdf5-dev
\
sudo
\
openmpi-bin
\
xvfb
\
screen
\
wget
&&
\
rm
-rf
/var/lib/apt/lists/
*
# Install conda
ENV
CONDA_DIR /opt/conda
ENV
PATH $CONDA_DIR/bin:$PATH
RUN
wget
--quiet
--no-check-certificate
https://repo.continuum.io/miniconda/Miniconda3-4.2.12-Linux-x86_64.sh
&&
\
echo
"c59b3dd3cad550ac7596e0d599b91e75d88826db132e4146030ef471bb434e9a *Miniconda3-4.2.12-Linux-x86_64.sh"
|
sha256sum
-c
-
&&
\
/bin/bash /Miniconda3-4.2.12-Linux-x86_64.sh
-f
-b
-p
$CONDA_DIR
&&
\
...
...
@@ -39,11 +33,10 @@ ENV NB_UID 1000
RUN
useradd
-m
-s
/bin/bash
-N
-u
$NB_UID
$NB_USER
&&
\
chown
$NB_USER
$CONDA_DIR
-R
&&
\
chown
$NB_USER
/userdata/kerasData
-R
&&
\
mkdir
-p
/
&&
\
chown
$NB_USER
/
&&
\
chpasswd
$NB_USER
:ar-noc
RUN
usermod
-aG
docker
${
NB_USER
}
USER
$NB_USER
...
...
@@ -78,6 +71,7 @@ RUN conda install -y python=${python_version} && \
conda clean
-yt
# pip install git+git://github.com/keras-team/keras.git && \
#ADD theanorc /home/keras/.theanorc
ENV
LC_ALL=C.UTF-8
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment