Skip to content

Commit

Permalink
Rebase to Alpine 3.19
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Nemchik <eric@nemchik.com>
  • Loading branch information
nemchik committed Dec 24, 2023
1 parent aa04545 commit d10059a
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 39 deletions.
36 changes: 18 additions & 18 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# syntax=docker/dockerfile:1

FROM ghcr.io/linuxserver/baseimage-alpine-nginx:3.18
FROM ghcr.io/linuxserver/baseimage-alpine-nginx:3.19

# set version label
ARG BUILD_DATE
Expand All @@ -12,23 +12,23 @@ LABEL maintainer="TheSpad"
RUN \
echo "**** install runtime packages ****" && \
apk add --no-cache \
php82-bcmath \
php82-bz2 \
php82-cli \
php82-dom \
php82-gd \
php82-gettext \
php82-gmp \
php82-mysqli \
php82-pdo \
php82-pdo_dblib \
php82-pdo_mysql \
php82-pecl-apcu \
php82-pecl-memcached \
php82-soap \
php82-xmlreader && \
apk add --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community \
php82-pecl-mcrypt && \
php83-bcmath \
php83-bz2 \
php83-cli \
php83-dom \
php83-gd \
php83-gettext \
php83-gmp \
php83-mysqli \
php83-pdo \
php83-pdo_dblib \
php83-pdo_mysql \
php83-pecl-apcu \
php83-pecl-memcached \
php83-soap \
php83-xmlreader && \
apk add --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing \
php83-pecl-mcrypt && \
echo "**** install projectsend ****" && \
mkdir -p /app/www/public && \
if [ -z ${PROJECTSEND_VERSION+x} ]; then \
Expand Down
36 changes: 18 additions & 18 deletions Dockerfile.aarch64
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# syntax=docker/dockerfile:1

FROM ghcr.io/linuxserver/baseimage-alpine-nginx:arm64v8-3.18
FROM ghcr.io/linuxserver/baseimage-alpine-nginx:arm64v8-3.19

# set version label
ARG BUILD_DATE
Expand All @@ -12,23 +12,23 @@ LABEL maintainer="TheSpad"
RUN \
echo "**** install runtime packages ****" && \
apk add --no-cache \
php82-bcmath \
php82-bz2 \
php82-cli \
php82-dom \
php82-gd \
php82-gettext \
php82-gmp \
php82-mysqli \
php82-pdo \
php82-pdo_dblib \
php82-pdo_mysql \
php82-pecl-apcu \
php82-pecl-memcached \
php82-soap \
php82-xmlreader && \
apk add --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community \
php82-pecl-mcrypt && \
php83-bcmath \
php83-bz2 \
php83-cli \
php83-dom \
php83-gd \
php83-gettext \
php83-gmp \
php83-mysqli \
php83-pdo \
php83-pdo_dblib \
php83-pdo_mysql \
php83-pecl-apcu \
php83-pecl-memcached \
php83-soap \
php83-xmlreader && \
apk add --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing \
php83-pecl-mcrypt && \
echo "**** install projectsend ****" && \
mkdir -p /app/www/public && \
if [ -z ${PROJECTSEND_VERSION+x} ]; then \
Expand Down
5 changes: 3 additions & 2 deletions readme-vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ param_env_vars:
- { env_var: "MAX_UPLOAD", env_value: "5000", desc: "To set maximum upload size (in MB), default if unset is 5000." }
param_usage_include_vols: true
param_volumes:
- { vol_path: "/config", vol_host_path: "<path to data>", desc: "Where to store projectsend config files." }
- { vol_path: "/data", vol_host_path: "<path to data>", desc: "Where to store files to share." }
- { vol_path: "/config", vol_host_path: "/path/to/{{ project_name }}/config", desc: "Persistent config files" }
- { vol_path: "/data", vol_host_path: "/path/to/data", desc: "Where to store files to share." }
param_usage_include_ports: true
param_ports:
- { external_port: "80", internal_port: "80", port_desc: "WebUI" }
Expand Down Expand Up @@ -55,6 +55,7 @@ app_setup_block: |
# changelog
changelogs:
- { date: "23.12.23:", desc: "Rebase to Alpine 3.19 with php 8.3."}
- { date: "25.05.23:", desc: "Rebase to Alpine 3.18, deprecate armhf." }
- { date: "08.03.23:", desc: "Rebasing to alpine 3.17 and upgrading to s6v3." }
- { date: "23.08.22:", desc: "Add translation support"}
Expand Down
6 changes: 6 additions & 0 deletions root/etc/php83/conf.d/projectsend.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[PHP]
memory_limit = 512M
upload_max_filesize = 5000M
max_file_uploads = 200
post_max_size = 5000M
cgi.fix_pathinfo= 0
2 changes: 1 addition & 1 deletion root/etc/s6-overlay/s6-rc.d/init-projectsend-config/run
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ sed -i \
-e "s#;*max_file_uploads =.*#max_file_uploads = ${PHP_MAX_FILE_UPLOAD}#i" \
-e "s#;*post_max_size =.*#post_max_size = ${USABLE_MAX_UPLOAD}M#i" \
-e "s#;*cgi.fix_pathinfo=.*#cgi.fix_pathinfo= 0#i" \
/etc/php82/php.ini
/etc/php83/conf.d/projectsend.ini

# copy config
PREV_DIR=$(pwd)
Expand Down

0 comments on commit d10059a

Please sign in to comment.