1
0
Fork 0
mirror of https://codeberg.org/ashley/poke.git synced 2025-01-31 03:53:33 -05:00
poke/p/Dockerfile

22 lines
399 B
Text
Raw Normal View History

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