aproli90 commited on
Commit
3aea843
·
verified ·
1 Parent(s): bea9fd6

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -0
Dockerfile CHANGED
@@ -1,6 +1,9 @@
1
  ARG BASE=node:20.18.0
2
  FROM ${BASE} AS base
3
 
 
 
 
4
  WORKDIR /app
5
 
6
  # Install dependencies (this step is cached as long as the dependencies don't change)
@@ -17,6 +20,9 @@ EXPOSE 5173
17
  # Production image
18
  FROM base AS bolt-ai-production
19
 
 
 
 
20
  # Define environment variables with default values or let them be overridden
21
  ARG GROQ_API_KEY
22
  ARG HuggingFace_API_KEY
@@ -56,6 +62,9 @@ CMD [ "pnpm", "run", "dockerstart"]
56
  # Development image
57
  FROM base AS bolt-ai-development
58
 
 
 
 
59
  # Define the same environment variables for development
60
  ARG GROQ_API_KEY
61
  ARG HuggingFace
 
1
  ARG BASE=node:20.18.0
2
  FROM ${BASE} AS base
3
 
4
+ # Ensure root user
5
+ USER root
6
+
7
  WORKDIR /app
8
 
9
  # Install dependencies (this step is cached as long as the dependencies don't change)
 
20
  # Production image
21
  FROM base AS bolt-ai-production
22
 
23
+ # Ensure root user
24
+ USER root
25
+
26
  # Define environment variables with default values or let them be overridden
27
  ARG GROQ_API_KEY
28
  ARG HuggingFace_API_KEY
 
62
  # Development image
63
  FROM base AS bolt-ai-development
64
 
65
+ # Ensure root user
66
+ USER root
67
+
68
  # Define the same environment variables for development
69
  ARG GROQ_API_KEY
70
  ARG HuggingFace