poke/p/Dockerfile

22 lines
399 B
Docker
Raw Normal View History

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
2024-04-22 23:37:39 +02:00
# Base
FROM node:18-alpine
2024-04-22 23:37:39 +02:00
# Install dependencies
RUN apk add --no-cache git build-base python3
2024-04-22 23:37:39 +02:00
# Set Work Directory
WORKDIR /pproxy
2024-04-22 23:37:39 +02:00
# Install dependencies
# Honestly less effort this way
RUN yarn add express undici
2024-04-22 23:37:39 +02:00
# Copy files
COPY server.js .
2024-04-22 23:37:39 +02:00
# Entrypoint
2022-12-30 22:48:17 +01:00
CMD [ "node", "server.js" ]