File tree Expand file tree Collapse file tree 3 files changed +16
-17
lines changed
Expand file tree Collapse file tree 3 files changed +16
-17
lines changed Original file line number Diff line number Diff line change 22# Copyright (c) https://github.com/gOOvER/own-pterodactyl-images/blob/main/LICENSE
33#
44
5- name : DisBot Docker Builder (Customer )
5+ name : DisBot Docker Builder (EntryPoint )
66
77on :
88 # Allows you to run this workflow manually from the Actions tab
1818 SENTRY_DSN : ${{ secrets.SENTRY_DSN }}
1919jobs :
2020 push :
21- name : " Customer Builder"
21+ name : " DisBot Builder"
2222 runs-on : ubuntu-latest
2323 permissions :
2424 contents : read
5252 - uses : docker/build-push-action@v5
5353 with :
5454 context : .
55- file : docker/CustomerDockerfile
55+ file : docker/DisBotDockerfileWithEntry
5656 platforms : linux/amd64
5757 push : true
5858 tags : |
59- ghcr.io/disbotdevelopment/disbot-bot:${{ steps.package-version.outputs.current-version}}
60- ghcr.io/disbotdevelopment/disbot-bot:latest
59+ ghcr.io/disbotdevelopment/disbot-bot:${{ steps.package-version.outputs.current-version}}-with-entry
60+ ghcr.io/disbotdevelopment/disbot-bot:latest-with-entry
Original file line number Diff line number Diff line change @@ -12,19 +12,23 @@ RUN apt-get update && apt-get install -y \
1212 g++ \
1313 curl \
1414 ca-certificates \
15- && apt-get clean
15+ && apt-get clean && useradd -m -d /home/container container
1616
17- WORKDIR /home/container
17+ WORKDIR /bot
1818COPY . .
1919
2020RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
2121 apt-get install -y nodejs
2222
2323RUN bun install @napi-rs/canvas
24+
2425RUN bun install --force
26+
2527RUN bun run build
26- RUN useradd -m -d /home/container container
27- ENV USER=container HOME=/home/container
28- USER container
29- COPY ./entrypoint.sh /entrypoint.sh
30- CMD ["/bin/bash", "/entrypoint.sh"]
28+
29+ USER container
30+ ENV USER=container HOME=/home/container
31+ WORKDIR /home/container
32+
33+ COPY entrypoint.sh /entrypoint.sh
34+ CMD [ "/bin/bash", "/entrypoint.sh" ]
Original file line number Diff line number Diff line change @@ -9,14 +9,9 @@ export TZ=UTC
99# Get the internal IP address
1010export INTERNAL_IP=$( ip route get 1 | awk ' {print $NF; exit}' )
1111
12- # Display NodeJS version
13- echo " NodeJS Version:"
14- node -v
15-
1612# Replace startup variables
1713PARSED=$( echo -e ${STARTUP} | sed -e ' s/{{/${/g' -e ' s/}}/}/g' )
1814
19-
2015# Run the main process
2116eval ${PARSED}
2217
You can’t perform that action at this time.
0 commit comments