-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (26 loc) · 1014 Bytes
/
Dockerfile
File metadata and controls
36 lines (26 loc) · 1014 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
32
33
34
35
36
# syntax=docker/dockerfile:1
FROM --platform=linux/amd64 python:3.10-bookworm
# Prevents Python from writing pyc files.
ENV PYTHONDONTWRITEBYTECODE=1
# Keeps Python from buffering stdout and stderr to avoid situations where
# the application crashes without emitting any logs due to buffering.
ENV PYTHONUNBUFFERED=1
WORKDIR /app
COPY requirements requirements
RUN pip install --no-cache-dir -r requirements/requirements.txt
RUN pip install --no-cache-dir -r requirements/requirements_gui.txt
COPY directlfq directlfq
COPY MANIFEST.in MANIFEST.in
COPY LICENSE LICENSE
COPY README.md README.md
COPY pyproject.toml pyproject.toml
RUN pip install --no-cache-dir ".[stable,gui-stable]"
ENV PORT=5006
EXPOSE 5006
# to allow other host ports than 5006
ENV BOKEH_ALLOW_WS_ORIGIN=localhost
CMD ["/usr/local/bin/directlfq", "gui", "--port", "5006"]
# build & run:
# docker build --progress=plain -t directlfq .
# DATA_FOLDER=/path/to/local/data
# docker run -p 41215:41215 -v $DATA_FOLDER:/app/data/ -t directlfq