forked from VoltaML/voltaML-fast-stable-diffusion
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdockerfile
More file actions
32 lines (22 loc) · 1.09 KB
/
dockerfile
File metadata and controls
32 lines (22 loc) · 1.09 KB
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
FROM stax124/aitemplate:latest
ENV DEBIAN_FRONTEND=noninteractive
RUN apt update && apt install curl -y
RUN curl -sL https://deb.nodesource.com/setup_18.x | bash
RUN apt install nodejs -y
RUN npm i -g yarn
RUN apt install time git -y
RUN pip install --upgrade pip
WORKDIR /app
COPY requirements /app/requirements
RUN --mount=type=cache,mode=0755,target=/root/.cache/pip pip install -r requirements/api.txt
RUN --mount=type=cache,mode=0755,target=/root/.cache/pip pip install -r requirements/bot.txt
RUN --mount=type=cache,mode=0755,target=/root/.cache/pip pip install -r requirements/pytorch.txt
RUN --mount=type=cache,mode=0755,target=/root/.cache/pip pip install -r requirements/interrogation.txt
RUN --mount=type=cache,mode=0755,target=/root/.cache/pip pip install python-dotenv
RUN --mount=type=cache,mode=0755,target=/root/.cache/pip pip install -U xformers
COPY . /app
RUN --mount=type=cache,mode=0755,target=/app/frontend/node_modules cd frontend && yarn install && yarn build
RUN rm -rf frontend/node_modules
# Run the server
RUN chmod +x scripts/start.sh
ENTRYPOINT ["bash", "./scripts/start.sh"]