Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
Docker Piwigo
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
STEP Public
Docker Piwigo
Commits
16c852e4
Commit
16c852e4
authored
2 years ago
by
Adem Aber Aouni
Browse files
Options
Downloads
Patches
Plain Diff
Changed user with useradd and good pid
parent
13b18010
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+7
-5
7 additions, 5 deletions
Dockerfile
with
7 additions
and
5 deletions
Dockerfile
+
7
−
5
View file @
16c852e4
...
...
@@ -6,8 +6,8 @@ ENV DEBIAN_FRONTEND noninteractive
ENV
HOME /root
ARG
PIWIGO_VERSION="13.2.0"
ARG
PIWIGO_USER
="www-data"
ARG
PIWIGO_GROUP
="www-data"
ARG
PIWIGO_USER
_ID=53
ARG
PIWIGO_GROUP
_ID=53
RUN
apt update
-y
\
&&
apt
install
-yy
\
...
...
@@ -28,6 +28,8 @@ RUN apt update -y \
exiftool
\
&&
rm
-rf
/var/lib/apt/lists/
*
/tmp/
*
/var/tmp/
*
RUN
useradd
-u
$PIWIGO_USER
-g
$PIWIGO_GROUP
user
RUN
wget
-q
-O
piwigo.zip http://piwigo.org/download/dlcounter.php?code
=
$PIWIGO_VERSION
&&
\
unzip piwigo.zip
&&
\
rm
/var/www/
*
-rf
&&
\
...
...
@@ -44,9 +46,9 @@ RUN wget -q -O piwigo.zip http://piwigo.org/download/dlcounter.php?code=$PIWIGO_
sed
-i
"s/memory_limit = 128M/memory_limit = 512M/"
/etc/php/7.4/apache2/php.ini
&&
\
sed
-i
"s/max_input_time = 60/max_input_time = 180/"
/etc/php/7.4/apache2/php.ini
&&
\
sed
-i
"s/post_max_size = 8M/post_max_size = 100M/"
/etc/php/7.4/apache2/php.ini
&&
\
sed
-i
"s/upload_max_filesize = 2M/upload_max_filesize = 100M/"
/etc/php/7.4/apache2/php.ini
sed -i "s/APACHE_RUN_USER=www-data/APACHE_RUN_USER=
$PIWIGO_USER
/" /etc/apache2/envvars
sed -i "s/APACHE_RUN_GROUP=www-data/APACHE_RUN_GROUP=
$PIWIGO_GROUP
/" /etc/apache2/envvars
sed
-i
"s/upload_max_filesize = 2M/upload_max_filesize = 100M/"
/etc/php/7.4/apache2/php.ini
&&
\
sed
-i
"s/APACHE_RUN_USER=www-data/APACHE_RUN_USER=
user
/"
/etc/apache2/envvars
&&
\
sed
-i
"s/APACHE_RUN_GROUP=www-data/APACHE_RUN_GROUP=
user
/"
/etc/apache2/envvars
VOLUME
["/var/www/galleries", "/var/www/themes", "/var/www/plugins", "/var/www/local", "/var/www/_data/i", "/config"]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment