init project

This commit is contained in:
rainerosion 2023-02-03 16:31:49 +08:00
commit 3541d55d7c
2 changed files with 44 additions and 0 deletions

32
Dockerfile Normal file
View File

@ -0,0 +1,32 @@
FROM php:8-fpm-alpine
COPY --from=caddy:alpine /usr/bin/caddy /usr/bin/caddy
RUN set -eux && \
apk update &&\
apk add --no-cache \
openssl \
openssl-dev \
autoconf \
g++ \
make \
pcre-dev \
icu-dev \
ca-certificates \
mailcap \
postgresql-libs \
zlib \
zlib-dev \
libzip \
libzip-dev \
libpng \
libpng-dev \
libjpeg-turbo \
libjpeg-turbo-dev \
libxslt \
libxslt-dev \
postgresql-libs \
postgresql-dev \
libgcrypt-dev &&\
docker-php-ext-install -j "$(nproc)" exif zip mysqli pdo_mysql mbstring bcmath intl opcache sockets pcntl pgsql pdo_pgsql gd &&\
docker-php-ext-configure gd --with-jpeg &&\
pecl install redis &&\
docker-php-ext-enable redis

12
config/Caddyfile Normal file
View File

@ -0,0 +1,12 @@
{
auto_https disable_redirects
email admin@rainss.cc
}
jrebel.rainss.cc:80, jrebel.rlds.tk:80 {
encode zstd gzip
reverse_proxy :81
}
charles.rlds.tk:80 {
encode zstd gzip
reverse_proxy :8082
}