enable ssl_early_data, default enable http2, option to enable brotli, fix shellcheck

Signed-off-by: Zoey <zoey@z0ey.de>
This commit is contained in:
Zoey
2023-01-20 08:09:52 +01:00
parent e0be3a5ea3
commit 45895ac53e
33 changed files with 367 additions and 261 deletions

View File

@@ -1,4 +1,4 @@
FROM zoeyvid/nginx-quic:32
FROM zoeyvid/nginx-quic:51
COPY rootfs /
COPY backend /app
COPY global /app/global
@@ -6,31 +6,27 @@ COPY frontend/dist /app/frontend
WORKDIR /app
RUN apk upgrade --no-cache && \
apk add --no-cache ca-certificates wget tzdata bash coreutils \
python3 \
nodejs-current npm \
openssl apache2-utils jq fcgi \
apk add --no-cache ca-certificates wget tzdata \
python3 nodejs-current npm \
gcc g++ libffi-dev python3-dev \
php81 php81-fpm php82 php82-fpm && \
grep coreutils jq openssl apache2-utils && \
# Install cross-env
npm install --global cross-env && \
# Install pip
wget https://bootstrap.pypa.io/get-pip.py -O - | python3 && \
# Change permission
chmod +x /bin/start.sh && \
chmod +x /bin/check-health.sh && \
# Build Backend
sed -i "s/0.0.0/$(cat global/.version)/g" package.json && \
sed -i "s|\"0.0.0\"|\""$(cat global/.version)"\"|g" package.json && \
npm install --force && \
# Install Certbot
pip install --no-cache-dir certbot && \
apk del --no-cache gcc g++ libffi-dev python3-dev npm
# Clean
apk del --no-cache npm gcc g++ libffi-dev python3-dev
ENV NODE_ENV=production \
DB_SQLITE_FILE=/data/database.sqlite
ENTRYPOINT ["start.sh"]
HEALTHCHECK CMD check-health.sh
HEALTHCHECK CMD check-health.sh