commit 23079eb4bc046f70889de9b0df7b2ce076d7aae3 Author: Chicory Date: Fri Jul 26 12:44:19 2024 +0300 Repository init diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..4da7e71 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,28 @@ +FROM php:8.3-cli + +RUN apt-get update + +# Git, curl, GnuPG, php dependencies +RUN apt-get -y install curl zip gnupg git git-lfs libfreetype-dev libzip-dev\ + libjpeg62-turbo-dev libpng-dev libxml2-dev + +# PHP extensions +RUN docker-php-ext-configure gd --with-freetype --with-jpeg \ + && docker-php-ext-install -j$(nproc) gd +RUN docker-php-ext-install -j$(nproc) zip +RUN docker-php-ext-install -j$(nproc) soap + +# Composer +COPY --from=composer/composer:latest-bin /composer /usr/bin/composer + +# Node.js +RUN curl -sL https://deb.nodesource.com/setup_20.x | bash - +RUN apt-get -y install nodejs +RUN ln -s /usr/bin/node /usr/local/bin/node + +# PNPM +ENV PNPM_HOME="/pnpm" +ENV PATH="$PNPM_HOME:$PATH" + +RUN corepack enable +RUN pnpm --version diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..ae6316c --- /dev/null +++ b/LICENSE @@ -0,0 +1,18 @@ + Copyright (c) 2024 chicory@fossee.net + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..511691a --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +PHP8 cli image compatible with gitea act-runner +-----------------------------------------------