Update Dockerfile
Browse files- Dockerfile +12 -4
Dockerfile
CHANGED
|
@@ -11,12 +11,17 @@ RUN git clone https://github.com/jokyo02/clivpn .
|
|
| 11 |
RUN npm install
|
| 12 |
RUN npm ls miniflare
|
| 13 |
# Install the missing cloudflare:sockets module
|
| 14 |
-
RUN npm install cloudflare-worker
|
| 15 |
|
| 16 |
-
RUN npm install cloudflare
|
| 17 |
|
| 18 |
# Install the @miniflare/web-sockets module
|
| 19 |
-
RUN npm install @miniflare/web-sockets
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
|
| 21 |
RUN ls -al ./node_modules/miniflare/dist/src
|
| 22 |
RUN chmod 777 ./node_modules
|
|
@@ -24,4 +29,7 @@ RUN chmod 777 ./node_modules
|
|
| 24 |
EXPOSE 7860
|
| 25 |
|
| 26 |
# Start the application
|
| 27 |
-
CMD ["node", "--experimental-vm-modules", "cli.js"]
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
RUN npm install
|
| 12 |
RUN npm ls miniflare
|
| 13 |
# Install the missing cloudflare:sockets module
|
| 14 |
+
#RUN npm install cloudflare-worker
|
| 15 |
|
| 16 |
+
#RUN npm install cloudflare
|
| 17 |
|
| 18 |
# Install the @miniflare/web-sockets module
|
| 19 |
+
#RUN npm install @miniflare/web-sockets
|
| 20 |
+
|
| 21 |
+
RUN npm install --save-dev webpack webpack-cli
|
| 22 |
+
RUN npm run build
|
| 23 |
+
|
| 24 |
+
|
| 25 |
|
| 26 |
RUN ls -al ./node_modules/miniflare/dist/src
|
| 27 |
RUN chmod 777 ./node_modules
|
|
|
|
| 29 |
EXPOSE 7860
|
| 30 |
|
| 31 |
# Start the application
|
| 32 |
+
#CMD ["node", "--experimental-vm-modules", "cli.js"]
|
| 33 |
+
|
| 34 |
+
# Start the application
|
| 35 |
+
CMD ["node", "--experimental-vm-modules", "dist/bundle.js"]
|