Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +7 -1
Dockerfile
CHANGED
@@ -10,6 +10,12 @@ COPY config.yaml .
|
|
10 |
# Make sure your docker/entrypoint.sh is executable
|
11 |
RUN chmod +x ./docker/entrypoint.sh
|
12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
# Expose the necessary port
|
14 |
EXPOSE 7860/tcp
|
15 |
|
@@ -17,4 +23,4 @@ EXPOSE 7860/tcp
|
|
17 |
# WARNING: FOR PROD DO NOT USE `--detailed_debug` it slows down response times, instead use the following CMD
|
18 |
# CMD ["--port", "7860", "--config", "config.yaml"]
|
19 |
|
20 |
-
CMD ["--port", "7860", "--config", "config.yaml"]
|
|
|
10 |
# Make sure your docker/entrypoint.sh is executable
|
11 |
RUN chmod +x ./docker/entrypoint.sh
|
12 |
|
13 |
+
# Create the necessary cache directory with appropriate permissions
|
14 |
+
RUN mkdir -p /.cache/prisma-python/binaries && chmod -R 777 /.cache
|
15 |
+
|
16 |
+
# Install Prisma and its dependencies
|
17 |
+
RUN npm install -g prisma
|
18 |
+
|
19 |
# Expose the necessary port
|
20 |
EXPOSE 7860/tcp
|
21 |
|
|
|
23 |
# WARNING: FOR PROD DO NOT USE `--detailed_debug` it slows down response times, instead use the following CMD
|
24 |
# CMD ["--port", "7860", "--config", "config.yaml"]
|
25 |
|
26 |
+
CMD ["--port", "7860", "--config", "config.yaml"]
|