anatoli72 commited on
Commit
fcea744
·
verified ·
1 Parent(s): 9eaa129

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -4
Dockerfile CHANGED
@@ -6,10 +6,12 @@ WORKDIR /app
6
  RUN git clone https://github.com/HeyPuter/puter.git . && \
7
  npm install
8
 
9
- ENV PORT=7860
10
- ENV HOST=0.0.0.0
11
- ENV WEBPACK_DEV_SERVER_HOST=0.0.0.0
12
- ENV WEBPACK_DEV_SERVER_DISABLE_HOST_CHECK=true
13
 
 
14
  EXPOSE 7860
 
15
  CMD ["npm", "start"]
 
6
  RUN git clone https://github.com/HeyPuter/puter.git . && \
7
  npm install
8
 
9
+ # Отключаем проверку Host в webpack.config.js
10
+ RUN sed -i 's/host: "localhost"/host: "0.0.0.0"/g' webpack.config.js || true && \
11
+ sed -i 's|disableHostCheck: false|disableHostCheck: true|g' webpack.config.js || true && \
12
+ sed -i 's/allowedHosts: .*/allowedHosts: "all",/g' webpack.config.js || true
13
 
14
+ ENV PORT=7860
15
  EXPOSE 7860
16
+
17
  CMD ["npm", "start"]