Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to using bash and to no longer hide errors #116

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions manifest/images/panel/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,23 @@ ENV VERSION=${VERSION}
WORKDIR /var/www/html

RUN \
apk add yarn git;
apk add yarn git

RUN \
git clone https://github.com/pterodactyl/panel ./ --depth 1 --branch ${GIT_BRANCH}; \
rm .git -rf; \
chmod -R 755 storage/* bootstrap/cache; \
find storage -type d > .storage.tmpl; \
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer; \
cp .env.example .env; \
composer install --ansi --no-dev --optimize-autoloader; \
chown -R nginx:nginx *;
git clone https://github.com/pterodactyl/panel ./ --depth 1 --branch ${GIT_BRANCH} && \
rm .git -rf && \
chmod -R 755 storage/* bootstrap/cache && \
find storage -type d > .storage.tmpl && \
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer && \
cp .env.example .env && \
composer install --ansi --no-dev --optimize-autoloader && \
chown -R nginx:nginx *

RUN \
yarn install --production; \
yarn add cross-env; \
yarn run build:production; \
rm -rf node_modules;
yarn install --production && \
yarn add cross-env && \
yarn run build:production && \
rm -rf node_modules

# Remove persistent data folders as they will be symlinked further down
RUN rm .env ./storage -rf
Expand All @@ -57,8 +57,8 @@ COPY ./root/ /

# Symlink storage, config and cache to /data
RUN \
ln -s /data/storage storage; \
ln -s /data/pterodactyl.conf .env;
ln -s /data/storage storage && \
ln -s /data/pterodactyl.conf .env

EXPOSE 80 443
VOLUME [ "/data" ]
Expand Down