-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
39 lines (30 loc) · 828 Bytes
/
Dockerfile
File metadata and controls
39 lines (30 loc) · 828 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
37
38
39
FROM nvidia/cuda:11.3.0-cudnn8-runtime-ubuntu20.04
ARG DEBIAN_FRONTEND=noninteractive
# Install some basic utilities
RUN apt-get update && apt-get install -y \
python3.8-venv \
curl \
ca-certificates \
sudo \
git \
bzip2 \
libx11-6 \
wget \
libgl1-mesa-glx \
libglib2.0-dev \
libcairo2-dev \
gcc \
&& rm -rf /var/lib/apt/lists/*
# Create a working directory
RUN mkdir /app
# Create a non-root user and switch to it
RUN adduser --disabled-password --gecos '' --shell /bin/bash user \
&& chown -R user:user /app
# All users can use /home/user as their home directory
ENV HOME=/home/user
ADD . /app
# Set the working directory to /app
WORKDIR /app
# Install dependencies
# RUN ./install.sh
CMD ["./webui.sh", "-f", "--api", "--nowebui", "--port", "8000", "--listen"]