JacobLinCool commited on
Commit
cee6efa
·
1 Parent(s): e572519

build: docker image

Browse files

Former-commit-id: ac46adebcd933fd328013c5e8c9f5e65fdc97a00

Files changed (3) hide show
  1. .dockerignore +14 -0
  2. Dockerfile +19 -0
  3. docker-compose.yml +8 -0
.dockerignore ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .git
2
+
3
+ .venv
4
+ __pycache__
5
+
6
+ Dockerfile
7
+ docker-compose.yml
8
+ .dockerignore
9
+
10
+ .github
11
+
12
+ .DS_Store
13
+
14
+ examples
Dockerfile ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-alpine3.17
2
+
3
+ RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories && \
4
+ echo "http://dl-cdn.alpinelinux.org/alpine/edge/main" >> /etc/apk/repositories && \
5
+ apk update && \
6
+ apk add --no-cache blender-headless && \
7
+ ln -s /usr/bin/blender-headless /usr/bin/blender
8
+
9
+ RUN apk add --no-cache mesa-gl mesa-egl mesa-gles mesa-dri-gallium
10
+
11
+ WORKDIR /app
12
+
13
+ RUN pip3 install --upgrade pip && \
14
+ pip3 install gunicorn flask
15
+
16
+ COPY . .
17
+
18
+
19
+ CMD ["gunicorn", "-w", "2", "server:app", "--bind", "0.0.0.0:7860"]
docker-compose.yml ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ version: "3.9"
2
+
3
+ services:
4
+ app:
5
+ build: .
6
+ image: jacoblincool/create-3d-icon
7
+ ports:
8
+ - "7860:7860"