mirror of
https://github.com/OPSnet/Gazelle.git
synced 2026-01-16 18:04:34 -05:00
build scss stylesheets and previews on docker-compose up
This commit is contained in:
@@ -7,9 +7,9 @@ run_service()
|
||||
|
||||
# We'll need these anyway so why not kill some time while waiting on MySQL to be ready
|
||||
if [ -n "$ENV" ] && [ "$ENV" == "prod" ]; then
|
||||
su -c 'composer --version && composer install --no-dev --optimize-autoloader --no-suggest; yarn --prod' gazelle
|
||||
su -c 'composer --version && composer install --no-dev --optimize-autoloader --no-suggest; yarn --prod; yarn prod' gazelle
|
||||
else
|
||||
su -c 'composer --version && composer install; yarn' gazelle
|
||||
su -c 'composer --version && composer install; yarn; yarn dev; yarn build:previews' gazelle
|
||||
fi
|
||||
|
||||
# Wait for MySQL...
|
||||
|
||||
55
Dockerfile
55
Dockerfile
@@ -61,22 +61,45 @@ RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
|
||||
yarn
|
||||
|
||||
# Puppeteer layer
|
||||
# Install latest chrome dev package and fonts to support major charsets (Chinese, Japanese, Arabic, Hebrew, Thai and a few others)
|
||||
# Note: this installs the necessary libs to make the bundled version of Chromium that Puppeteer
|
||||
# installs, work.
|
||||
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
|
||||
&& sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y --no-install-recommends \
|
||||
google-chrome-unstable \
|
||||
fonts-ipafont-gothic \
|
||||
fonts-wqy-zenhei \
|
||||
fonts-thai-tlwg \
|
||||
fonts-kacst \
|
||||
fonts-freefont-ttf \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& groupadd -r pptruser \
|
||||
&& usermod -aG pptruser,audio,video gazelle
|
||||
# This installs the necessary packages to run the bundled version of chromium for puppeteer
|
||||
RUN apt-get install -y --no-install-recommends \
|
||||
gconf-service \
|
||||
libasound2 \
|
||||
libatk1.0-0 \
|
||||
libc6 \
|
||||
libcairo2 \
|
||||
libcups2 \
|
||||
libdbus-1-3 \
|
||||
libexpat1 \
|
||||
libfontconfig1 \
|
||||
libgcc1 \
|
||||
libgconf-2-4 \
|
||||
libgdk-pixbuf2.0-0 \
|
||||
libglib2.0-0 \
|
||||
libgtk-3-0 \
|
||||
libnspr4 \
|
||||
libpango-1.0-0 \
|
||||
libpangocairo-1.0-0 \
|
||||
libstdc++6 \
|
||||
libx11-6 \
|
||||
libx11-xcb1 \
|
||||
libxcb1 \
|
||||
libxcomposite1 \
|
||||
libxcursor1 \
|
||||
libxdamage1 \
|
||||
libxext6 \
|
||||
libxfixes3 \
|
||||
libxi6 \
|
||||
libxrandr2 \
|
||||
libxrender1 \
|
||||
libxss1 \
|
||||
libxtst6 \
|
||||
fonts-liberation \
|
||||
libappindicator1 \
|
||||
libnss3 \
|
||||
lsb-release \
|
||||
xdg-utils \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# If running Docker >= 1.13.0 use docker run's --init arg to reap zombie processes, otherwise
|
||||
# uncomment the following lines to have `dumb-init` as PID 1
|
||||
|
||||
Reference in New Issue
Block a user