video-sub/.devcontainer/service/.devcontainer.json

17 lines
994 B
JSON

{
"image": "php:8.3-fpm",
"customizations": {},
"mounts": [
"source=/,target=/workspace,type=bind,consistency=delegated"
],
"remoteEnv": {
"COMPOSER_ALLOW_SUPERUSER": "1"
},
"postCreateCommand": "apt-get update && apt-get install -y build-essential postgresql-client libpng-dev libjpeg62-turbo-dev libfreetype6-dev libzip-dev locales zip jpegoptim optipng pngquant gifsicle git unzip && mkdir /workspace && cd /workspace && curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer && apt-get install -y libpq-dev && docker-php-ext-install pdo_pgsql && curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash && export NVM_DIR=\"$HOME/.nvm\" && [ -s \"$NVM_DIR/nvm.sh\" ] && \\. \"$NVM_DIR/nvm.sh\" && [ -s \"$NVM_DIR/bash_completion\" ] && \\. \"$NVM_DIR/bash_completion\"",
"dockerComposeFile": ".devcontainer/docker-compose.yml",
"service": "app",
"forwardPorts": [
"8000:8000"
]
}