-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (24 loc) · 862 Bytes
/
Dockerfile
File metadata and controls
33 lines (24 loc) · 862 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
# syntax=docker/dockerfile:1
FROM python:3.11
# 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 -r requirements/requirements.txt
RUN pip install -r requirements/requirements_gui.txt
COPY alphaquant alphaquant
COPY MANIFEST.in MANIFEST.in
COPY LICENSE LICENSE
COPY README.md README.md
COPY pyproject.toml pyproject.toml
RUN pip install ".[stable,gui-stable,dask-stable]"
ENV PORT=41215
EXPOSE 41215
CMD ["/usr/local/bin/alphaquant", "gui"]
# build & run:
# docker build --progress=plain -t alphaquant .
# DATA_FOLDER=/path/to/local/data
# docker run -p 41215:41215 -v $DATA_FOLDER:/app/data/ -t alphaquant