forked from zyndagj/tacc-base
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
29 lines (22 loc) · 942 Bytes
/
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
# Image: gzynda/tacc-base
# Version: 0.0.2
# Use 16.04 LTS
FROM ubuntu:xenial
########################################
# Configure ENV
########################################
ENV DEBIAN_FRONTEND=noninteractive
########################################
# Add docker-clean
########################################
RUN echo "#!/bin/bash\n\
[ -x \"\$(command -v yum)\" ] && yum clean all\n\
[ -x \"\$(command -v apt-get)\" ] && apt-get clean\n\
[ -x \"\$(command -v conda)\" ] && conda clean -tipsy\n\
for dir in /tmp/* /var/tmp/* /home/jupyter/{.ccache,.cache/pip,conda-bld,.conda} /root/* /root/\.[^\.]* /var/lib/apt/lists/* /var/log/*; do\n\
[ -e \$dir ] && rm -rf \$dir || true\n\
done" > /usr/bin/docker-clean && chmod a+rx /usr/bin/docker-clean && docker-clean
########################################
# Add mount points
########################################
RUN mkdir /scratch /work /home1 /gpfs /corral-repl /corral-tacc /data