monyisfree преди 1 месец
родител
ревизия
f01d364855
променени са 1 файла, в които са добавени 22 реда и са изтрити 0 реда
  1. 22 0
      Dockerfile

+ 22 - 0
Dockerfile

@@ -0,0 +1,22 @@
+# Base image with Node.js
+FROM node:18
+
+# Install Tor
+RUN apt-get update && apt-get install -y tor
+
+# Set up the working directory
+WORKDIR /app
+
+# Copy application files
+COPY package.json package-lock.json ./
+RUN npm install
+COPY . .
+
+# Copy the Tor configuration file
+COPY torrc /etc/tor/torrc
+
+# Expose ports for HTTP proxy server
+EXPOSE 3000
+
+# Start both Tor and the Node.js proxy server
+CMD tor & node index.js