File size: 929 Bytes
363928f 7dba112 363928f 353a876 4939513 ffceb04 4dc4fff ffceb04 4939513 aaf80ba d50e18c ffceb04 ff34fba 557cb9b ffceb04 aaf80ba 754c679 b1477a2 363928f 52a1680 363928f ffceb04 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
# Use the official Node.js image as the base image
FROM node:18
# Set the working directory inside the container
WORKDIR /app
# Clone the code from the GitHub repository
RUN git clone https://github.com/jokyo02/clivpn .
# Install the dependencies
RUN npm install
RUN npm ls miniflare
# Install the missing cloudflare:sockets module
#RUN npm install cloudflare-worker
#RUN npm install cloudflare
# Install the @miniflare/web-sockets module
#RUN npm install @miniflare/web-sockets
#RUN npm install --save-dev webpack webpack-cli
RUN npm install --save-dev babel-loader @babel/core @babel/preset-env
RUN npm run build
RUN ls -al ./node_modules/miniflare/dist/src
RUN chmod 777 ./node_modules
# Expose the port that your application is listening on
EXPOSE 7860
# Start the application
#CMD ["node", "--experimental-vm-modules", "cli.js"]
# Start the application
CMD ["node", "--experimental-vm-modules", "dist/bundle.js"] |