-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (23 loc) · 816 Bytes
/
Dockerfile
File metadata and controls
29 lines (23 loc) · 816 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
FROM proteowizard/pwiz-skyline-i-agree-to-the-vendor-licenses
# Install Python + pip (Debian-based pwiz image) and essentials
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
python3 python3-pip tzdata ca-certificates && \
rm -rf /var/lib/apt/lists/*
# Python deps
COPY requirements.txt /tmp/requirements.txt
RUN pip3 install --no-cache-dir -r /tmp/requirements.txt && rm /tmp/requirements.txt
# Place the watcher
COPY app.py /usr/local/bin/app.py
# Working directory (bind-mount here)
WORKDIR /data
# Defaults (overridable at runtime)
ENV WATCH_DIR=/data \
OUTPUT_DIR=/data/mzML \
QUIET_SECONDS=20 \
CHECK_INTERVAL=5 \
BOOTSTRAP=1 \
FORMAT=mzML \
GZIP=1 \
LOG_LEVEL=INFO
ENTRYPOINT ["python3", "/usr/local/bin/app.py"]