reztilop commited on
Commit
d97b3bf
·
verified ·
1 Parent(s): fce0f0b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -3
Dockerfile CHANGED
@@ -13,8 +13,12 @@ RUN chmod +x ./docker/entrypoint.sh
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
@@ -23,4 +27,4 @@ EXPOSE 7860/tcp
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"]
 
13
  # Create the necessary cache directory with appropriate permissions
14
  RUN mkdir -p /.cache/prisma-python/binaries && chmod -R 777 /.cache
15
 
16
+ # Install Node.js and npm
17
+ RUN apt-get update && \
18
+ apt-get install -y curl && \
19
+ curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \
20
+ apt-get install -y nodejs && \
21
+ npm install -g prisma
22
 
23
  # Expose the necessary port
24
  EXPOSE 7860/tcp
 
27
  # WARNING: FOR PROD DO NOT USE `--detailed_debug` it slows down response times, instead use the following CMD
28
  # CMD ["--port", "7860", "--config", "config.yaml"]
29
 
30
+ CMD ["--port", "7860", "--config"]