2024-04-22 17:37:39 -04:00
|
|
|
# docker build -t pproxy .
|
|
|
|
# docker run -p 6003:6003 -v ./whitelist.json:/pproxy/whitelist.json:ro pproxy
|
2022-12-30 05:29:58 -05:00
|
|
|
|
2024-04-22 17:37:39 -04:00
|
|
|
# Base
|
|
|
|
FROM node:18-alpine
|
2022-12-30 05:29:58 -05:00
|
|
|
|
2024-04-22 17:37:39 -04:00
|
|
|
# Install dependencies
|
|
|
|
RUN apk add --no-cache git build-base python3
|
2022-12-30 05:29:58 -05:00
|
|
|
|
2024-04-22 17:37:39 -04:00
|
|
|
# Set Work Directory
|
|
|
|
WORKDIR /pproxy
|
2022-12-30 05:29:58 -05:00
|
|
|
|
2024-04-22 17:37:39 -04:00
|
|
|
# Install dependencies
|
|
|
|
# Honestly less effort this way
|
|
|
|
RUN yarn add express undici
|
2022-12-30 05:29:58 -05:00
|
|
|
|
2024-04-22 17:37:39 -04:00
|
|
|
# Copy files
|
|
|
|
COPY server.js .
|
2022-12-30 05:29:58 -05:00
|
|
|
|
2024-04-22 17:37:39 -04:00
|
|
|
# Entrypoint
|
2022-12-30 16:48:17 -05:00
|
|
|
CMD [ "node", "server.js" ]
|