added proxy service

This commit is contained in:
JBB0807 2025-05-01 10:55:40 -07:00
parent 97c526dbab
commit 0933b798ca
6 changed files with 1111 additions and 0 deletions

26
proxy-service/Dockerfile Normal file
View file

@ -0,0 +1,26 @@
# syntax=docker/dockerfile:1
# Use the official Node.js image as the base image
ARG NODE_VERSION=22.13.1
FROM node:${NODE_VERSION}-slim AS base
# Set the working directory
WORKDIR /app
# Install curl, ping, and netstat
RUN apt-get update && apt-get install -y curl iputils-ping net-tools
COPY . .
RUN npm install
# Install dependencies using npm ci for deterministic builds
# RUN --mount=type=cache,target=/root/.npm npm ci --production
# Copy the application source code
COPY --link . .
# Expose the application port
EXPOSE 8080
# Define the command to run the application
CMD ["node", "server.js"]