Spaces:
Build error
Build error
Update dockerfile
Browse files- dockerfile +5 -4
dockerfile
CHANGED
@@ -1,11 +1,12 @@
|
|
1 |
-
|
2 |
-
|
|
|
3 |
#Create logs/cache dir :
|
4 |
-
mkdir -p logs cache
|
5 |
# Edit .env and set:
|
6 |
# TORCH_CUDA_ARCH_LIST based on your GPU model
|
7 |
# APP_RUNTIME_GID your host user's group id (run `id -g` in a terminal)
|
8 |
# BUILD_EXTENIONS optionally add comma separated list of extensions to build
|
9 |
# Edit CMD_FLAGS.txt and add in it the options you want to execute (like --listen --cpu)
|
10 |
#
|
11 |
-
docker compose up --build
|
|
|
1 |
+
FROM python:3.9
|
2 |
+
RUN ln -s docker/{cpu/Dockerfile,cpu/docker-compose.yml,.dockerignore} .
|
3 |
+
RUN cp docker/.env.example .env
|
4 |
#Create logs/cache dir :
|
5 |
+
RUN mkdir -p logs cache
|
6 |
# Edit .env and set:
|
7 |
# TORCH_CUDA_ARCH_LIST based on your GPU model
|
8 |
# APP_RUNTIME_GID your host user's group id (run `id -g` in a terminal)
|
9 |
# BUILD_EXTENIONS optionally add comma separated list of extensions to build
|
10 |
# Edit CMD_FLAGS.txt and add in it the options you want to execute (like --listen --cpu)
|
11 |
#
|
12 |
+
RUN docker compose up --build
|