fix M1 chip

This commit is contained in:
Vassiliy Yegorov
2021-05-20 15:21:21 +07:00
parent 50716a55f2
commit 6a08e8706c
4 changed files with 5 additions and 3 deletions

View File

@@ -1,3 +1,3 @@
#!/bin/bash
docker build -t vasyakrg/php-db . && docker push vasyakrg/php-db
docker buildx build --platform linux/amd64 --push -t vasyakrg/php-db .

View File

@@ -8,6 +8,8 @@ services:
MARIADB_USER: ${MARIADB_USER}
MARIADB_PASSWORD: ${MARIADB_PASSWORD}
MARIADB_DATABASE: ${MARIADB_DATABASE}
volumes:
- ./php/myapp:/var/www
ports:
- 80:80
networks:

View File

@@ -7,7 +7,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
wget \
git \
libpq-dev \
&& docker-php-ext-install mysqli pdo_pgsql pdo_mysql \
&& docker-php-ext-install pdo_mysql \
&& apt-get update \
&& rm -rf /var/lib/apt/lists/*

View File

@@ -1,3 +1,3 @@
#!/bin/bash
docker build -t vasyakrg/php-app . && docker push vasyakrg/php-app
docker buildx build --platform linux/amd64 --push -t vasyakrg/php-app .