Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
TMS
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
Show more breadcrumbs
CC-IN2P3 Applications team
TMS
Commits
7b3b8315
Commit
7b3b8315
authored
5 years ago
by
Cyril L'Orphelin
Browse files
Options
Downloads
Patches
Plain Diff
MAJ dockerfile
parent
1c7cd3f9
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+6
-19
6 additions, 19 deletions
Dockerfile
with
6 additions
and
19 deletions
Dockerfile
+
6
−
19
View file @
7b3b8315
FROM
php:7.4-fpm
FROM
gitlab-registry.in2p3.fr/cc-in2p3-devops/openshift-origin/openshift-images/nginx:stable
RUN
apt-get update
&&
apt-get
install
-y
\
libfreetype6-dev
\
libjpeg62-turbo-dev
\
...
...
@@ -8,11 +10,11 @@ RUN apt-get update && apt-get install -y \
unzip
\
nodejs
\
npm
\
nginx
\
php7.4
\
&&
docker-php-ext-configure gd
--with-freetype
--with-jpeg
\
&&
docker-php-ext-install
-j
$(
nproc
)
gd
RUN
apt-get
install
php-pear php7.4-curl php7.4-dev php7.4-gd php7.4-mbstring php7.4-zip php7.4-mysql php7.4-xml
RUN
echo
"date.timezone=Europe/Paris"
>
/usr/local/etc/php/conf.d/timezone.ini
RUN
echo
"opcache.enable_cli=1"
>
/usr/local/etc/php/conf.d/opcache.ini
...
...
@@ -34,7 +36,7 @@ RUN cp symfony.conf /etc/nginx/conf.d/symfony.conf
RUN
mv
.env.template .env
RUN
ls
-ahl
RUN
curl
-sS
https://getcomposer.org/installer | php
RUN
php composer.phar
install
...
...
@@ -51,21 +53,6 @@ RUN $HOME/.yarn/bin/yarn encore dev
# support running as arbitrary user which belongs to the root group
RUN
chmod
g+rwx /var/run /var/log/nginx
# users are not allowed to listen on priviliged ports
#RUN sed -i.bak 's/listen\(.*\)80;/listen 8081;/' /etc/nginx/conf.d/default.conf
EXPOSE
8081
# comment user directive as master process is run as user in OpenShift anyhow
#RUN sed -i.bak 's/^user/#user/' /etc/nginx/nginx.conf
RUN
adduser nginx
RUN
addgroup nginx root
USER
nginx
...
...
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