-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (30 loc) · 834 Bytes
/
Dockerfile
File metadata and controls
31 lines (30 loc) · 834 Bytes
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
ARG PY_VER
ARG DISTRO
ARG IMAGE
FROM datajoint/${IMAGE}:py${PY_VER}-${DISTRO}
COPY --chown=anaconda:anaconda ./README.rst ./requirements.txt ./setup.py \
/main/
COPY --chown=anaconda:anaconda ./pharus/*.py /main/pharus/
RUN \
umask u+rwx,g+rwx,o-rwx && \
cd /main && \
pip install . && \
rm -R /main/*
HEALTHCHECK \
--timeout=30s \
--retries=5 \
--interval=15s \
CMD \
wget --quiet --tries=1 --spider \
http://localhost:${PHARUS_PORT}${PHARUS_PREFIX}/version > /dev/null 2>&1 || exit 1
ENV PHARUS_PORT 5000
# ---TEMP---
RUN pip install plotly
# ----------
COPY --chown=anaconda:anaconda ./reload.sh /tmp/
WORKDIR /main
# Install opencv dependencies
USER root
RUN apk add mesa-gl
USER anaconda
CMD ["sh", "-c", "otumat watch -f ${PHARUS_SPEC_PATH} -s /tmp/reload.sh -i 5"]