-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
39 lines (28 loc) · 1.01 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
ARG KATSDPDOCKERBASE_REGISTRY=harbor.sdp.kat.ac.za/dpp
FROM $KATSDPDOCKERBASE_REGISTRY/docker-base-build as build
# Enable Python 3 venv
ENV PATH="$PATH_PYTHON3" VIRTUAL_ENV="$VIRTUAL_ENV_PYTHON3"
# Install python dependencies
COPY requirements.txt /tmp/install/
RUN install_pinned.py -r /tmp/install/requirements.txt
# Install the current package
COPY --chown=kat:kat . /tmp/install/katsdpcal
WORKDIR /tmp/install/katsdpcal
RUN python ./setup.py clean
RUN pip install --no-deps .
RUN pip check
WORKDIR /tmp
#######################################################################
FROM $KATSDPDOCKERBASE_REGISTRY/docker-base-runtime
LABEL maintainer="sdpdev+katsdpcal@ska.ac.za"
COPY --from=build --chown=kat:kat /home/kat/ve3 /home/kat/ve3
ENV PATH="$PATH_PYTHON3" VIRTUAL_ENV="$VIRTUAL_ENV_PYTHON3"
# katcp port
EXPOSE 2048
# L0 SPEAD
EXPOSE 7202/udp
# expose volume for saving report etc.
VOLUME ["/var/kat/data"]
# Cal vomits out log files into the current directory, so it needs to be
# somewhere writable.
WORKDIR /tmp