hansaka1 commited on
Commit
1f7732b
·
verified ·
1 Parent(s): 4a62786

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -0
Dockerfile CHANGED
@@ -3,6 +3,10 @@ FROM node:18-alpine as build
3
  ENV REACT_APP_TG_API_ID=999123456789
4
  ENV REACT_APP_TG_API_HASH=REPLACE_ME_API_HASH_PLACEHOLDER
5
 
 
 
 
 
6
  # Install git and other build deps
7
  RUN apk add --no-cache git python3 make g++
8
 
 
3
  ENV REACT_APP_TG_API_ID=999123456789
4
  ENV REACT_APP_TG_API_HASH=REPLACE_ME_API_HASH_PLACEHOLDER
5
 
6
+ # Memory optimizations to prevent OOM
7
+ ENV NODE_OPTIONS="--max-old-space-size=2048"
8
+ ENV GENERATE_SOURCEMAP=false
9
+
10
  # Install git and other build deps
11
  RUN apk add --no-cache git python3 make g++
12