Merge pull request #18 from parkervcp/nodejs

adding nodejs image
This commit is contained in:
Dane Everitt 2018-02-24 10:44:53 -06:00 committed by GitHub
commit 8499594aa0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 29 additions and 0 deletions

17
Dockerfile Normal file
View File

@ -0,0 +1,17 @@
# ----------------------------------
# Pterodactyl Core Dockerfile
# Environment: glibc
# Minimum Panel Version: 0.6.0
# ----------------------------------
FROM node:8.9-alpine
MAINTAINER Pterodactyl Software, <support@pterodactyl.io>
RUN 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}