Reconfigure to run out of /app directory
This commit is contained in:
12
Dockerfile
12
Dockerfile
@@ -31,18 +31,16 @@ RUN apk --no-cache add \
|
||||
${PHP_VER}-xmlwriter \
|
||||
${PHP_VER}-zip \
|
||||
${PHP_VER}-zlib && \
|
||||
rm -rf /var/www/localhost && \
|
||||
mkdir -p \
|
||||
/var/www/pterodactyl \
|
||||
/app \
|
||||
/run/nginx \
|
||||
/run/php-fpm && \
|
||||
ln -s /etc/${PHP_VER} /etc/php && \
|
||||
ln -s /usr/bin/${PHP_VER} /usr/bin/php && \
|
||||
ln -s /usr/sbin/${PHPFPM_VER} /usr/sbin/php-fpm && \
|
||||
ln -s /var/log/${PHP_VER} /var/log/php
|
||||
ln -s /usr/sbin/${PHPFPM_VER} /usr/sbin/php-fpm
|
||||
|
||||
FROM base AS build
|
||||
WORKDIR /var/www/pterodactyl
|
||||
WORKDIR /app
|
||||
|
||||
# Download latest Panel build from project repository: https://github.com/pterodactyl/panel
|
||||
ADD https://github.com/pterodactyl/panel/releases/latest/download/panel.tar.gz panel.tar.gz
|
||||
@@ -63,11 +61,11 @@ RUN apk --no-cache add yarn && \
|
||||
rm -rf node_modules .env ./storage
|
||||
|
||||
FROM base AS release
|
||||
WORKDIR /var/www/pterodactyl
|
||||
WORKDIR /app
|
||||
ENV S6_BEHAVIOUR_IF_STAGE2_FAILS="2"
|
||||
|
||||
# Copy built Panel from Build stage
|
||||
COPY --from=build --chown=nginx:nginx /var/www /var/www
|
||||
COPY --from=build --chown=nginx:nginx /app /app
|
||||
COPY root/ /
|
||||
|
||||
# Download latest S6-Overlay components from project repository: https://github.com/just-containers/s6-overlay
|
||||
|
Reference in New Issue
Block a user