Skip to content

Commit

Permalink
Merge pull request #1492 from bakaphp/feat-kanvas-on-arm
Browse files Browse the repository at this point in the history
updated development dockerfile
  • Loading branch information
rwhite27 authored Jun 12, 2024
2 parents c0bbd51 + 309a92f commit f55bdfa
Showing 1 changed file with 6 additions and 18 deletions.
24 changes: 6 additions & 18 deletions development.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
FROM --platform=linux/arm64 unit:php8.3

# # Define a build argument for the target architecture
# ARG TARGETARCH
# # Set an environment variable to use the architecture in commands
# ENV ARCH=$TARGETARCH
FROM unit:php8.3

COPY ./docker/unit.json /docker-entrypoint.d/

Expand Down Expand Up @@ -31,28 +26,21 @@ RUN apt-get update && apt-get install -y \
nginx \
vim

# Set working directory
WORKDIR /app

# RUN groupadd -g 1000 unit
# RUN useradd -u 1000 -ms /bin/bash -g unit unit
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer

# Copy code to /var/www
COPY . /app
COPY . /var/www/html/
# COPY chown -R unit:unit /var/www/html/

# Install composer
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer

# add root to www group
# RUN chmod -R ug+w var/www/html/storage

RUN cp docker/docker-php-ext-opcache-prod.ini /usr/local/etc/php/conf.d/docker-php-ext-opcache.ini
RUN cp docker/php.ini /usr/local/etc/php/conf.d/zx-app-config.ini
# RUN cp docker/php-fpm.conf /usr/local/etc/php-fpm.d/zzz-php-fpm-production.conf

WORKDIR /var/www/html/

RUN cp docker/docker-php-ext-opcache-prod.ini /usr/local/etc/php/conf.d/docker-php-ext-opcache.ini
RUN cp docker/php.ini /usr/local/etc/php/conf.d/zx-app-config.ini

RUN composer install --optimize-autoloader

EXPOSE 8080

0 comments on commit f55bdfa

Please sign in to comment.