forked from MannLabs/alphatims
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
22 lines (15 loc) · 745 Bytes
/
Dockerfile
File metadata and controls
22 lines (15 loc) · 745 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# FROM python:3.9-slim
FROM --platform=linux/amd64 python:3.9-bullseye
RUN apt-get update && apt-get install -y build-essential gcc python3-dev
RUN adduser worker
USER worker
WORKDIR /home/worker
COPY --chown=worker:worker dist/*.whl /home/worker
# RUN python3 -m pip install ".[plotting-stable]" # Image is 1.6gb with plotting
# The size is reduced to 847 mb without it.
RUN python3 -m pip install --disable-pip-version-check --no-cache-dir --user /home/worker/*.whl
RUN ls /home/worker/.local/lib/python3.9/site-packages/alphatims/ext/timsdata.so
RUN chmod 777 /home/worker/.local/lib/python3.9/site-packages/alphatims/ext/timsdata.so
RUN python3 -m pip cache purge
ENV PATH="/home/worker/.local/bin:${PATH}"
ENTRYPOINT [ "alphatims" ]