master
chris 2022-11-12 23:36:41 +01:00
parent f564fd6c24
commit cc8ea24f8b
2 changed files with 36 additions and 2 deletions

View File

@ -20,8 +20,8 @@ RUN set -xe;\
cp -r storage storage.skel &&\
rm -rf .git tests contrib CHANGELOG.md LICENSE .circleci .dependabot .github CODE_OF_CONDUCT.md .env.docker CONTRIBUTING.md README.md docker-compose.yml .env.testing phpunit.xml .env.example .gitignore .editorconfig .gitattributes .dockerignore
FROM reg.zknt.org/zknt/debian-php:7.4
ENV PHPVER=7.4
FROM reg.zknt.org/zknt/debian-php:8.1
ENV PHPVER=8.1
COPY --from=builder /var/www /var/www
COPY entrypoint.sh /entrypoint.sh
COPY worker-entrypoint.sh /worker-entrypoint.sh

34
asset-notes.txt 100644
View File

@ -0,0 +1,34 @@
# compile assets
add to webpack.mix.js: `.js('resources/assets/js/components/**/*.vue', 'public/js').vue()`
oder nur .vue()?
composer install --prefer-dist --no-interaction --no-ansi --no-dev --optimize-autoloader
npm install
export PATH=$(pwd)/node_modules/.bin:$PATH
mix --production
[webpack-cli] Error: Prevent writing to file that only differs in casing or query string from already written file.
This will lead to a race-condition and corrupted files on case-insensitive file systems.
/pixelfed/public/js/Activity.js
/pixelfed/public/js/activity.js
at checkSimilarFile (/pixelfed/node_modules/webpack/lib/Compiler.js:666:11)
at writeOut (/pixelfed/node_modules/webpack/lib/Compiler.js:848:11)
at /pixelfed/node_modules/webpack/lib/util/fs.js:242:5
at FSReqCallback.oncomplete (node:fs:189:23)
apk add php7 git npm
apk add php7-json php7-phar php7-mbstring php7-openssl php7-dom php7-simplexml php7-xmlreader php7-zip php7-fileinfo php7-curl php7-tokenizer php7-bcmath php7-intl php7-pcntl php7-sodium php7-pdo php7-posix
curl -s https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer
git clone https://github.com/pixelfed/pixelfed.git
cd /pixelfed
composer install --prefer-dist --no-interaction --no-ansi --no-dev --optimize-autoloader
npm install
rm -rf public/js
export PATH=$(pwd)/node_modules/.bin:$PATH
sed -i "s/.extract([/a.vue().extract([/" webpack.mix.js
mix --production