Commit 9a36b9b1 authored by Cameron Carney's avatar Cameron Carney

docker-compose now builds images, added in daemon Dockerfile;

parent e71e6996
*
!manifest/
\ No newline at end of file
......@@ -33,6 +33,9 @@ services:
# This is the main service that will be seen publically.
##
panel:
build:
context: ./manifest/panel
dockerfile: Dockerfile
container_name: pterodactyl-panel
depends_on:
- cache
......@@ -52,6 +55,9 @@ services:
# you may comment the section below.
##
daemon:
build:
context: ./manifest/daemon
dockerfile: Dockerfile
container_name: pterodactyl-daemon
depends_on:
- panel
......
FROM node:8-alpine
MAINTAINER Cameron Carney <ccarney16@live.com>
ENV DAEMON_VERSION=v0.5.5
WORKDIR /srv/daemon
# Sadly everything has to be in one line to ensure that the image stays small...
##
# Put it as this:
# update alpine repos and install the required building tools
# Download Daemon
# Install the Daemon's dependencies
# Delete the build tools (gcc, python, etc)
# Purge Cache
##
RUN \
apk --update --no-cache add coreutils curl openssl make gcc g++ python gnupg tar \
&& curl -Lo daemon.tar.gz https://github.com/Pterodactyl/Daemon/archive/${DAEMON_VERSION}.tar.gz \
&& tar --strip-components=1 -xzvf daemon.tar.gz \
&& rm -f daemon.tar.gz \
&& npm install --production \
&& apk del curl make gcc g++ python gnupg \
&& rm -rf /root/.npm /root/.node-gyp /root/.gnupg \
/var/cache/apk/* /tmp/*
EXPOSE 8080
CMD [ "npm", "start" ]
......@@ -25,7 +25,7 @@ RUN \
&& rm .env ./storage -rf \
&& chown nginx:nginx * -R
COPY ./manifest /
COPY ./ /
VOLUME [ "/data" ]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment