Browse Source

Dockerfile

Dockerfile
monyisfree 1 month atrás
parent
commit
f01d364855
1 changed files with 22 additions and 0 deletions
  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