Missing Dockerfile #2

Open
opened 2026-10-21 17:27:42 -04:00 by PointeR · 0 comments

Lucky you, I made one:

FROM node:26

WORKDIR /4play

RUN apt-get update \
    && apt-get install -y wget \
    && rm -rf /var/lib/apt/lists/* \
    && npm install @lawlers/4play \
    && npm install -g nodemon

RUN wget -O page-render.js \
    https://git.lolcat.ca/lolcat/4get/raw/branch/master/extra/4play/page-render.js

ENV FOURGET_FPLAY_PASSWORD=cnc
ENV FOURGET_FPLAY_TIMEOUT=30000

EXPOSE 3030

CMD sed -i \
    -e "s/var timeout = 30000;/var timeout = ${FOURGET_FPLAY_TIMEOUT};/" \
    -e "s/var password = \"cnc\";/var password = \"${FOURGET_FPLAY_PASSWORD}\";/" \
    page-render.js \
    && nodemon page-render.js

And a matching compose entry:

  4play:
    build: .
    container_name: 4play
    environment:
      - FOURGET_FPLAY_PASSWORD=NOPASSWORD4U
      - FOURGET_FPLAY_TIMEOUT=30000

  4play-ffx:
    image: lscr.io/linuxserver/firefox:latest
    container_name: 4play-ffx
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Your/Timezone
    volumes:
      - ./ffx:/config
    #for configuring the firefox
    #ports:
      #- "127.0.0.1:5901:3001"
    shm_size: "512mb"
Lucky you, I made one: ``` FROM node:26 WORKDIR /4play RUN apt-get update \ && apt-get install -y wget \ && rm -rf /var/lib/apt/lists/* \ && npm install @lawlers/4play \ && npm install -g nodemon RUN wget -O page-render.js \ https://git.lolcat.ca/lolcat/4get/raw/branch/master/extra/4play/page-render.js ENV FOURGET_FPLAY_PASSWORD=cnc ENV FOURGET_FPLAY_TIMEOUT=30000 EXPOSE 3030 CMD sed -i \ -e "s/var timeout = 30000;/var timeout = ${FOURGET_FPLAY_TIMEOUT};/" \ -e "s/var password = \"cnc\";/var password = \"${FOURGET_FPLAY_PASSWORD}\";/" \ page-render.js \ && nodemon page-render.js ``` And a matching compose entry: ``` 4play: build: . container_name: 4play environment: - FOURGET_FPLAY_PASSWORD=NOPASSWORD4U - FOURGET_FPLAY_TIMEOUT=30000 4play-ffx: image: lscr.io/linuxserver/firefox:latest container_name: 4play-ffx environment: - PUID=1000 - PGID=1000 - TZ=Your/Timezone volumes: - ./ffx:/config #for configuring the firefox #ports: #- "127.0.0.1:5901:3001" shm_size: "512mb" ```
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: lolcat/4play#2