Compare commits

..

9 Commits

Author SHA1 Message Date
Michael (Parker) Parker
2f9001e11b
Merge pull request #46 from parkervcp/alpine/nodejs
Updating nodejs
2019-08-24 11:51:09 -04:00
Michael (Parker) Parker
0a13fb041e Updating nodejs
Adding ffmpeg for some discord bots.
2018-10-30 00:18:58 -04:00
Dane Everitt
2deabfa2a0
Merge pull request #32 from parkervcp/nodejs
Update nodejs image
2018-10-28 12:32:11 -07:00
Michael (Parker) Parker
c40a7309d8 Merge remote-tracking branch 'origin/nodejs' into nodejs 2018-10-14 19:24:35 -04:00
Michael (Parker) Parker
1579463845 adding libc6-compat
This is required to run some servers.
2018-10-14 19:24:00 -04:00
Michael (Parker) Parker
baa506f4d9
Merge pull request #10 from Exonical/nodejs
Fix Maintainer Deprecation
2018-07-13 18:50:36 -04:00
Unknown
63be3fdc90 Fix Maintainer Deprecation 2018-07-13 16:12:02 -04:00
Dane Everitt
8499594aa0
Merge pull request #18 from parkervcp/nodejs
adding nodejs image
2018-02-24 10:44:53 -06:00
Michael (Parker) Parker
942e8c5ff9 adding nodejs image 2018-02-22 11:00:41 -05:00
3 changed files with 30 additions and 17 deletions

View File

@ -1,17 +0,0 @@
---
name: "\U0001F41B Bug Report"
about: Report an issue for an image
---
Please fill out the information bellow and remove from the line up
If you just submit a bug with no info I will close out your bug.
---------------
Panel Version: (version number)
Daemon Version: (version number)
Service: (minecraft/factorio/etc)
Docker Image:
Modified: (yes/no) (did you add or change things, this includes startup configs/install scripts/variables)
Errors that you are experiencing:

18
Dockerfile Normal file
View File

@ -0,0 +1,18 @@
# ----------------------------------
# Pterodactyl Core Dockerfile
# Environment: glibc
# Minimum Panel Version: 0.6.0
# ----------------------------------
FROM node:8-alpine
LABEL author="Michael Parker" maintainer="parker@pterodactyl.io"
RUN apk add --no-cache --update libc6-compat ffmpeg \
&& adduser -D -h /home/container container
USER container
ENV USER=container HOME=/home/container
WORKDIR /home/container
COPY ./entrypoint.sh /entrypoint.sh
CMD ["/bin/ash", "/entrypoint.sh"]

12
entrypoint.sh Normal file
View File

@ -0,0 +1,12 @@
#!/bin/ash
cd /home/container
# Make internal Docker IP address available to processes.
export INTERNAL_IP=`ip route get 1 | awk '{print $NF;exit}'`
# Replace Startup Variables
MODIFIED_STARTUP=`eval echo $(echo ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')`
echo ":/home/container$ ${MODIFIED_STARTUP}"
# Run the Server
eval ${MODIFIED_STARTUP}