Skip to content

can't copy my custom wp-contnet to /var/www/html/wp-content #827

Closed

Description

@shankar-ccm

Below is my docker file

FROM wordpress:latest

RUN set -x \
    && apt-get update \
    && apt-get install -y \
        awscli \
        libzip-dev \
        jq \
        zip \
        libldap2-dev \
        locales \
        wget \
        gnupg \
        coreutils \
    && 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

#set ownership and permissions 
#755 - permissions of directories to read, write, and execute for the owner, and read and execute for others
#644- permissions of files to read and write for the owner, and read-only for others
RUN chown -R www-data:www-data /var/www/html 
RUN chmod -R 755 /var/www/html


 

COPY apache /etc/apache2/sites-available
COPY php /usr/local/etc/php/conf.d


COPY ./wp-content /var/www/html/wp-content

RUN a2enmod rewrite
RUN a2enmod headers

RUN cd /var/www/html/wp-content/themes/ccm && \
    curl -sL https://deb.nodesource.com/setup_16.x | bash - && \
    apt-get install -y nodejs && \
    apt-get install -y curl bash git && \
    npm install && \
    npm install -g bower && \
    npm install -g gulp && \
    npm run build

WORKDIR /var/www/html


COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh


ENTRYPOINT ["/entrypoint.sh"] 

CMD ["apache2-foreground"]

Activity

  1. locked and limited conversation to collaborators on May 30, 2023
  2. converted this issue into a discussion #828 on May 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions