Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
H
Hydra Node Http
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
novelai-storage
Hydra Node Http
Commits
28195f0f
Commit
28195f0f
authored
Jul 30, 2022
by
novelailab
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
better layering
parent
d1851529
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
Dockerfile
Dockerfile
+6
-3
No files found.
Dockerfile
View file @
28195f0f
FROM
nvidia/cuda:11.3.1-base-ubuntu20.04
FROM
nvidia/cuda:11.3.1-base-ubuntu20.04
ENV
DEBIAN_FRONTEND=noninteractive
ENV
DEBIAN_FRONTEND=noninteractive
#Install Torch(chonky!)
RUN
pip3
install
torch torchvision torchaudio
--extra-index-url
https://download.pytorch.org/whl/cu113
#Install core packages
#Install core packages
RUN
apt-get update
&&
apt-get
install
-y
\
RUN
apt-get update
&&
apt-get
install
-y
\
libncurses5 python3 python3-pip curl git apt-utils ssh ca-certificates
\
libncurses5 python3 python3-pip curl git apt-utils ssh ca-certificates
\
...
@@ -11,8 +14,9 @@ RUN apt-get update && apt-get install -y \
...
@@ -11,8 +14,9 @@ RUN apt-get update && apt-get install -y \
pip3
install
--no-cache-dir
--upgrade
pip
pip3
install
--no-cache-dir
--upgrade
pip
#Install Python deps
#Install Python deps
RUN
pip3
install
--no-cache-dir
dotmap icecream sentry-sdk numpy fastapi
"uvicorn[standard]"
gunicorn https://github.com/NovelAI/stable-diffusion/archive/ced6bcee86406be352fdc01314252b9b24357dcb.zip
RUN
pip3
install
--no-cache-dir
dotmap icecream sentry-sdk numpy fastapi
"uvicorn[standard]"
gunicorn
RUN
pip3
install
torch torchvision torchaudio
--extra-index-url
https://download.pytorch.org/whl/cu113
RUN
pip3
install
omegaconf transformers einops
RUN
pip3
install
https://github.com/NovelAI/stable-diffusion/archive/ced6bcee86406be352fdc01314252b9b24357dcb.zip
#Open ports
#Open ports
EXPOSE
8080
EXPOSE
8080
...
@@ -28,5 +32,4 @@ EXPOSE 50051
...
@@ -28,5 +32,4 @@ EXPOSE 50051
WORKDIR
/usr/src/app
WORKDIR
/usr/src/app
COPY
. .
COPY
. .
RUN
pip3
install
omegaconf transformers einops
CMD
[ "gunicorn", "main:app --workers 1 --worker-class uvicorn.workers.UvicornWorker --bind 0.0.0.0:80" ]
CMD
[ "gunicorn", "main:app --workers 1 --worker-class uvicorn.workers.UvicornWorker --bind 0.0.0.0:80" ]
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment