Upload 15 files
Browse files- Dockerfile +9 -0
Dockerfile
CHANGED
|
@@ -16,6 +16,15 @@ RUN npm install --production
|
|
| 16 |
# Copy the rest of the application source code to the working directory
|
| 17 |
COPY . .
|
| 18 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
# Make port 7860 available to the world outside this container
|
| 20 |
EXPOSE 7860
|
| 21 |
|
|
|
|
| 16 |
# Copy the rest of the application source code to the working directory
|
| 17 |
COPY . .
|
| 18 |
|
| 19 |
+
# Grant execute permission to the proxy server binary for the root user
|
| 20 |
+
RUN chmod +x /app/src/proxy/chrome_proxy_server_linux_amd64
|
| 21 |
+
|
| 22 |
+
# Change ownership of the app directory to the node user
|
| 23 |
+
RUN chown -R node:node /app
|
| 24 |
+
|
| 25 |
+
# Switch to a non-root user for security
|
| 26 |
+
USER node
|
| 27 |
+
|
| 28 |
# Make port 7860 available to the world outside this container
|
| 29 |
EXPOSE 7860
|
| 30 |
|