-
Notifications
You must be signed in to change notification settings - Fork 12
/
Dockerfile
61 lines (36 loc) · 1.07 KB
/
Dockerfile
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
### NOTE: THIS FILE IS AUTOGENERATED FROM generate_dockerfiles.py ###
FROM python:3.7
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
WORKDIR /usr/src/app/docs
COPY docs/requirements.txt ./
RUN pip3 install --no-cache-dir -r requirements.txt
COPY docs .
RUN mkdocs build
FROM python:3.7
WORKDIR /usr/src/app
ENV LANG=C.UTF-8
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
ENV PATH="/venv/bin:$PATH"
RUN python -m venv /venv --copies
COPY requirements.txt ./
RUN pip3 install -U pip setuptools wheel
RUN pip3 install --no-cache-dir -r requirements.txt
FROM node:lts
WORKDIR /usr/src/app/ui/frontend
COPY ui/frontend/package.json ui/frontend/package-lock.json ./
RUN npm ci
COPY ui/frontend .
RUN npm run build
FROM rhasspy/rhasspy:2.5.11
WORKDIR /usr/src/app
ENV PYTHONUNBUFFERED=1
ENV PATH="/venv/bin:$PATH"
COPY --from=1 /venv /venv
COPY --from=0 /usr/src/app/docs/site ./docs/site
COPY setup setup
COPY home_intent home_intent
COPY ui ui
COPY --from=2 /usr/src/app/ui/frontend/build ./ui/frontend/build
ENTRYPOINT [ "bash", "/usr/src/app/setup/setup.sh" ]