PeterPinetree commited on
Commit
021ab84
·
1 Parent(s): 911b7e2

chore(docker): harden Dockerfile, disable telemetry, add .dockerignore

Browse files
Files changed (2) hide show
  1. .dockerignore +18 -0
  2. Dockerfile +3 -0
.dockerignore ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Ignore node modules and build output
2
+ node_modules
3
+ .next
4
+ out
5
+
6
+ # Ignore environment files
7
+ .env
8
+ .env.*
9
+ !.env.example
10
+
11
+ # VCS
12
+ .git
13
+ .gitignore
14
+
15
+ # OS/editor noise
16
+ .DS_Store
17
+ .vscode
18
+ *.log
Dockerfile CHANGED
@@ -19,4 +19,7 @@ EXPOSE 3000
19
 
20
  # HF Spaces provides $PORT. Start Next.js on that port and bind to all interfaces.
21
  ENV HOST=0.0.0.0
 
 
 
22
  CMD ["sh", "-c", "npm start -- -p ${PORT:-3000}"]
 
19
 
20
  # HF Spaces provides $PORT. Start Next.js on that port and bind to all interfaces.
21
  ENV HOST=0.0.0.0
22
+ # Disable telemetry and ensure production env
23
+ ENV NEXT_TELEMETRY_DISABLED=1
24
+ ENV NODE_ENV=production
25
  CMD ["sh", "-c", "npm start -- -p ${PORT:-3000}"]