File size: 814 Bytes
8c0c410
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5fa5930
 
 
 
15296c6
5fa5930
8c0c410
 
 
 
 
5fa5930
8c0c410
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
# Use an official Node.js runtime as a parent image
FROM node:18-slim

# Set the working directory in the container
WORKDIR /app

# Copy package.json and package-lock.json to the working directory
COPY package*.json ./

# Install app dependencies
RUN npm install --production

# Copy the rest of the application source code to the working directory
COPY . .

# Grant execute permission to the proxy server binary for the root user
# We keep this for now in case other parts of the app still reference it.
# We will remove it in a later step.
RUN chmod +x /app/src/proxy/chrome_proxy_server_linux_amd64

# Switch to a non-root user for security. This is a good practice.
USER node

# Make port 7860 available to the world outside this container
EXPOSE 7860

# Define the command to run the app
CMD ["npm", "start"]