mirror of
https://github.com/supanadit/todo.git
synced 2025-05-04 20:39:55 +00:00
chore: fix devcontainer mysql connection libs client
This commit is contained in:
parent
284de6c978
commit
3d0a8f361f
10
.devcontainer/Dockerfile
Normal file
10
.devcontainer/Dockerfile
Normal file
@ -0,0 +1,10 @@
|
||||
FROM mcr.microsoft.com/devcontainers/php:7.4-bullseye
|
||||
|
||||
RUN curl -fsSL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo gpg --yes --dearmor -o /usr/share/keyrings/yarnkey.gpg
|
||||
RUN echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" | sudo tee /etc/apt/sources.list.d/yarn.list > /dev/null
|
||||
|
||||
# Install MariaDB client
|
||||
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
|
||||
&& apt-get install -y mariadb-client
|
||||
|
||||
RUN docker-php-ext-install mysqli pdo pdo_mysql
|
@ -2,7 +2,9 @@
|
||||
// README at: https://github.com/devcontainers/templates/tree/main/src/php
|
||||
{
|
||||
"name": "PHP",
|
||||
"image": "mcr.microsoft.com/devcontainers/php:7.4-bullseye",
|
||||
"build": {
|
||||
"dockerfile": "Dockerfile"
|
||||
},
|
||||
"features": {
|
||||
"ghcr.io/devcontainers/features/git:1": {}
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user