Skip to content

Commit

Permalink
1. Fixes building docker image
Browse files Browse the repository at this point in the history
2. Add support for both amd and arm platforms
  • Loading branch information
butschster committed Dec 4, 2023
1 parent cc669a6 commit 56dff2f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:
uses: docker/build-push-action@v3
with:
context: ./
platforms: linux/amd64,linux/arm64
file: ./Dockerfile
push: true
tags:
Expand Down
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ RUN apk add --no-cache \
libxslt-dev \
libxml2-dev \
icu-dev \
zip
zip \
linux-headers

RUN docker-php-ext-install \
opcache \
Expand All @@ -22,7 +23,7 @@ RUN docker-php-ext-install \
bcmath \
sockets

RUN apk add --no-cache nginx
RUN apk add --no-cache
COPY ./nginx/nginx.conf /etc/nginx/nginx.conf
RUN [ -d /etc/nginx/conf.d ] || mkdir /etc/nginx/conf.d
COPY ./nginx/default.conf /etc/nginx/conf.d/default.conf
Expand Down

0 comments on commit 56dff2f

Please sign in to comment.