Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Dockerfiles
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Picasoft
Technique
Dockerfiles
Commits
443f93c4
Commit
443f93c4
authored
6 years ago
by
Stanley Ragava
Committed by
Barbare Antoine
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
nouvelles corrections apportées à l'image pica-docuwiki
parent
28feb876
No related branches found
No related tags found
1 merge request
!18
Correction vulnérabilités Dokuwiki
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pica-dokuwiki/Dockerfile
+21
-18
21 additions, 18 deletions
pica-dokuwiki/Dockerfile
with
21 additions
and
18 deletions
pica-dokuwiki/Dockerfile
+
21
−
18
View file @
443f93c4
FROM
nginx
LABEL
maintainer="antoine@barbare.me"
RUN
apt-get update
-y
RUN
apt-get
install
-y
\
WORKDIR
/var/www
RUN
apt-get update
-y
\
apt-get
install
-y
\
curl
\
tar
\
php7.0
\
php7.0-fpm
\
php7.0-gd
\
php7.0-xml
php7.0-xml
;
\
mkdir
-p
html
;
\
chown
-R
nginx:nginx /var/www/html
USER
nginx
COPY
nginx.conf /etc/nginx/nginx.conf
RUN
echo
"cgi.fix_pathinfo = 0;"
>>
/etc/php/7.0/fpm/php.ini
&&
\
sed
-i
-e
"s|;daemonize
\s
*=
\s
*yes|daemonize = no|g"
/etc/php/7.0/fpm/php-fpm.conf
&&
\
sed
-i
-e
"s|listen
\s
*=
\s
*127
\.
0
\.
0
\.
1:9000|listen = /var/run/php-fpm7.sock|g"
/etc/php/7.0/fpm/pool.d/www.conf
&&
\
sed
-i
-e
"s|;listen
\.
owner
\s
*=
\s
*|listen.owner = |g"
/etc/php/7.0/fpm/pool.d/www.conf
&&
\
sed
-i
-e
"s|;listen
\.
group
\s
*=
\s
*|listen.group = |g"
/etc/php/7.0/fpm/pool.d/www.conf
&&
\
sed
-i
-e
"s|;listen
\.
mode
\s
*=
\s
*|listen.mode = |g"
/etc/php/7.0/fpm/pool.d/www.conf
&&
\
WORKDIR
/usr/share/nginx
RUN
curl
-O
-L
"https://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz"
&&
\
RUN
echo
"cgi.fix_pathinfo = 0;"
>>
/etc/php/7.0/fpm/php.ini
;
\
sed
-i
-e
"s|;daemonize
\s
*=
\s
*yes|daemonize = no|g"
/etc/php/7.0/fpm/php-fpm.conf
;
\
sed
-i
-e
"s|listen
\s
*=
\s
*127
\.
0
\.
0
\.
1:9000|listen = /var/run/php-fpm7.sock|g"
/etc/php/7.0/fpm/pool.d/www.conf
;
\
sed
-i
-e
"s|;listen
\.
owner
\s
*=
\s
*|listen.owner = |g"
/etc/php/7.0/fpm/pool.d/www.conf
;
\
sed
-i
-e
"s|;listen
\.
group
\s
*=
\s
*|listen.group = |g"
/etc/php/7.0/fpm/pool.d/www.conf
;
\
sed
-i
-e
"s|;listen
\.
mode
\s
*=
\s
*|listen.mode = |g"
/etc/php/7.0/fpm/pool.d/www.conf
;
\
curl -O -L "https://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz" && \
tar -xzf dokuwiki-stable.tgz -C html --strip-components 1 && \
rm -Rf dokuwiki*
USER
root
RUN
apt-get remove
-y
tar
&&
\
apt-get
-y
autoclean
&&
\
apt-get
-y
clean
&&
\
apt-get
-y
autoremove
USER
nginx
EXPOSE
80
VOLUME
["/var/www/html"]
HEALTHCHECK
CMD curl -s 127.0.0.1:${DOKUWIKI_PORT:=80}
...
...
@@ -33,11 +41,6 @@ HEALTHCHECK CMD curl -s 127.0.0.1:${DOKUWIKI_PORT:=80}
COPY
entrypoint.sh /entrypoint.sh
ENTRYPOINT
["/entrypoint.sh"]
USER
root
RUN
apt-get remove
-y
\
curl
\
tar
COPY
run.sh /run.sh
CMD
["run.sh"]
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