npm run build dist folder issue within /var/www/html/wp-content/themes/mytheme #832
Closed
shankar-ccm
started this conversation in
General
Replies: 1 comment
-
I fixed it |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am having issue when I create a container from below docker file, dist folder didn't show up in expected folder.
But if I run it in docker desktop it working fine.
Let me know how to fix this.
FROM wordpress:latest
COPY apache /etc/apache2/sites-available
COPY php /usr/local/etc/php/conf.d
COPY .htaccess ./
COPY ./wp-content/ /var/www/html/wp-content/
RUN chown -R www-data:www-data /var/www/html
RUN chmod -R 755 /var/www/html
RUN a2enmod rewrite
RUN a2enmod headers
RUN chmod o+w /var/www/html
RUN set -x
&& apt-get update
&& apt-get install -y
awscli
libzip-dev
jq
zip
libldap2-dev
locales
wget
gnupg
coreutils
vim
sudo
&& rm -rf /var/lib/apt/lists/*
&& docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu
&& docker-php-ext-install ldap
&& sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen
&& locale-gen
&& apt-get purge -y --auto-remove libldap2-dev
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash - &&
apt-get install -y nodejs git &&
npm install -g npm gulp bower
RUN cd /var/www/html/wp-content/themes/ccm
&& npm install
&& npm run build
&& find ./* -type f -printf "%h%f\n" | sort
&& cd /
RUN ls -l /var/www/html/wp-content/themes/ccm
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
CMD ["apache2-foreground"]
Beta Was this translation helpful? Give feedback.
All reactions