add debian version
This commit is contained in:
parent
4d4626ee40
commit
f476a9f1c0
2
.idea/.gitignore
vendored
Normal file
2
.idea/.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
# Default ignored files
|
||||
/workspace.xml
|
||||
10
.idea/composerJson.xml
Normal file
10
.idea/composerJson.xml
Normal file
@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ComposerJsonPluginSettings">
|
||||
<unboundedVersionInspectionSettings>
|
||||
<excludedPackages />
|
||||
</unboundedVersionInspectionSettings>
|
||||
<customRepositories />
|
||||
<composerUpdateOptions />
|
||||
</component>
|
||||
</project>
|
||||
8
.idea/docker-caddy-php.iml
Normal file
8
.idea/docker-caddy-php.iml
Normal file
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="WEB_MODULE" version="4">
|
||||
<component name="NewModuleRootManager">
|
||||
<content url="file:$MODULE_DIR$/../../../../../../..//$MODULE_DIR$" />
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
</module>
|
||||
6
.idea/misc.xml
Normal file
6
.idea/misc.xml
Normal file
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="JavaScriptSettings">
|
||||
<option name="languageLevel" value="ES6" />
|
||||
</component>
|
||||
</project>
|
||||
8
.idea/modules.xml
Normal file
8
.idea/modules.xml
Normal file
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file:$PROJECT_DIR$/../../../../../../..////wsl$/Ubuntu-18.04/home/matthieu/sites/lab/docker-caddy-php/.idea/docker-caddy-php.iml" filepath="wsl$/Ubuntu-18.04/../..////wsl$/Ubuntu-18.04/home/matthieu/sites/lab/docker-caddy-php/.idea/docker-caddy-php.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
||||
6
.idea/vcs.xml
Normal file
6
.idea/vcs.xml
Normal file
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
||||
6
caddy2/php7.4-debian/Caddyfile
Normal file
6
caddy2/php7.4-debian/Caddyfile
Normal file
@ -0,0 +1,6 @@
|
||||
:8080
|
||||
|
||||
root * /var/www/html/public
|
||||
encode gzip
|
||||
php_fastcgi 127.0.0.1:9000
|
||||
file_server
|
||||
34
caddy2/php7.4-debian/Dockerfile
Normal file
34
caddy2/php7.4-debian/Dockerfile
Normal file
@ -0,0 +1,34 @@
|
||||
FROM caddy:2.2.1 as caddy
|
||||
|
||||
FROM php:7.4-fpm
|
||||
|
||||
RUN apt-get update
|
||||
RUN apt-get install -y autoconf zlib1g-dev
|
||||
RUN pecl install grpc
|
||||
RUN docker-php-ext-enable grpc
|
||||
|
||||
COPY --from=caddy /config /config
|
||||
COPY --from=caddy /data /data
|
||||
COPY --from=caddy /usr/bin/caddy /usr/bin/caddy
|
||||
COPY Caddyfile /etc/caddy/
|
||||
|
||||
COPY php-fpm /usr/local/etc/php-fpm.d
|
||||
RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
|
||||
|
||||
COPY php-caddy-entrypoint /usr/local/bin/
|
||||
RUN chmod +x /usr/local/bin/php-caddy-entrypoint
|
||||
RUN curl --tlsv1 -v -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
|
||||
|
||||
#Install node
|
||||
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash -
|
||||
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
|
||||
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
|
||||
RUN apt-get install -y nodejs
|
||||
RUN apt update && apt install -y --no-install-recommends yarn
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
|
||||
ENTRYPOINT [ "php-caddy-entrypoint" ]
|
||||
|
||||
CMD ["caddy", "run", "--config", "/etc/caddy/Caddyfile", "--adapter", "caddyfile"]
|
||||
Loading…
Reference in New Issue
Block a user