-
Notifications
You must be signed in to change notification settings - Fork 2.5k
/
Dockerfile
29 lines (29 loc) · 1 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
FROM ubuntu:22.04
RUN apt update
RUN apt install -y curl
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash -
RUN apt update
RUN apt install -y nodejs
RUN apt -y install nodejs libsndfile1 python3 python3-dev python3-pip python3-venv
WORKDIR /app
COPY ./autoeq/*.py ./autoeq/
COPY ./webapp/ui/package.json ./webapp/ui/package.json
COPY ./webapp/ui/package-lock.json ./webapp/ui/package-lock.json
COPY ./webapp/ui/public ./webapp/ui/public
COPY ./webapp/ui/src ./webapp/ui/src
COPY ./webapp/ui/config ./webapp/ui/config
COPY ./webapp/ui/scripts ./webapp/ui/scripts
COPY ./webapp/main.py ./webapp/main.py
COPY ./webapp/requirements.txt ./webapp/requirements.txt
COPY ./pyproject.toml ./pyproject.toml
COPY ./README.md ./README.md
RUN python3 -m pip install -U pip
RUN python3 -m pip install -U .
WORKDIR /app/webapp
RUN python3 -m pip install -U -r ./requirements.txt
WORKDIR /app/webapp/ui
RUN npm ci
RUN npm run build
WORKDIR /app/webapp
ENV APP_ENV=production
CMD python3 -m uvicorn main:app --host 0.0.0.0 --port 8000