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