forked from radio-astro/docker-casa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
43 lines (34 loc) · 1.09 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
from radioastro/base:0.1
MAINTAINER gijs@pythonic.nl
RUN apt-get update && \
apt-get update -y && \
apt-get install -y libfreetype6 libsm6 libxi6 libxrender1 libxrandr2 libxfixes3 \
libxcursor1 libxinerama1 libfontconfig1 libxslt1.1 xauth xvfb dbus-x11 python-tk && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# setup all required env variables
ARG VERSION
ENV VERSION=${VERSION}
ENV RELEASE=casa-release-${VERSION}-el6
ENV USER root
ENV HOME /root
ENV PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/${RELEASE}/bin
# copy casas databundle to container
ADD ${RELEASE}.tar.gz /
RUN ln -s ${RELEASE} /casa
# copy empty casas config
ADD casa /root/.casa
# Add these for Sphe. Ideally we should remove these at some point.
RUN apt-get update && \
apt-get install -y \
time \
python-pyxis \
python-scipy \
python-astlib \
python-owlcat \
python-meqtrees-cattery \
python-kittens \
&& \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
WORKDIR /${RELEASE}/bin
CMD ["casa"]