Skip to content

Commit

Permalink
Merge pull request #1480 from bakaphp/feat-kanvas-on-arm
Browse files Browse the repository at this point in the history
Feat-kanvas-on-arm
  • Loading branch information
rwhite27 authored Jun 10, 2024
2 parents e2eabf7 + a4e767b commit 871a410
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
1 change: 0 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ on:
push:
branches:
- '1.x'
- 'development'

workflow_dispatch:

Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ec2-deploy.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Deploy to EC2

on:
push:
branches:
- 'development'

workflow_dispatch:

jobs:
Expand Down
11 changes: 8 additions & 3 deletions development.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
FROM unit:php8.3
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

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

Expand Down Expand Up @@ -39,8 +44,6 @@ COPY . /app
# Install composer
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer

RUN composer install --optimize-autoloader


# add root to www group
# RUN chmod -R ug+w var/www/html/storage
Expand All @@ -51,4 +54,6 @@ RUN cp docker/php.ini /usr/local/etc/php/conf.d/zx-app-config.ini

WORKDIR /var/www/html/

RUN composer install --optimize-autoloader

EXPOSE 8080
1 change: 0 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: '3'
services:
php:
container_name: php${APP_CONTAINER_NAME}
Expand Down

0 comments on commit 871a410

Please sign in to comment.