Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
EventsAPI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
jards
EventsAPI
Commits
1fed3055
Commit
1fed3055
authored
Jun 26, 2017
by
Carsten Karbach
Browse files
Options
Downloads
Patches
Plain Diff
Switch to using ubuntu as from directive, do all intermediate steps in the dockerfile itself
parent
1b93f9b9
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+36
-1
36 additions, 1 deletion
Dockerfile
with
36 additions
and
1 deletion
Dockerfile
+
36
−
1
View file @
1fed3055
FROM
nimmis/apache-php7
FROM
ubuntu:16.04
MAINTAINER
Carsten Karbach (c.karbach@fz-juelich.de)
# install dependencies, certificates, apache
RUN
apt-get update
\
&&
apt-get
install
-y
--no-install-recommends
ca-certificates
\
&&
apt-get
-y
dist-upgrade
\
&&
apt-get autoremove
-y
\
&&
apt-get clean all
\
&&
apt-get
install
-y
apache2
\
&&
rm
-r
/var/lib/apt/lists/
*
# Set environment variables.
ENV
HOME /root
# Define working directory.
WORKDIR
/root
# disable interactive functions
ENV
DEBIAN_FRONTEND noninteractive
# Install php
RUN
apt-get update
&&
\
apt-get
install
-y
curl zip unzip php libapache2-mod-php
\
php-fpm php-cli php-mysqlnd php-pgsql php-sqlite3 php-redis
\
php-apcu php-intl php-imagick php-mcrypt php-json php-gd php-curl
&&
\
phpenmod mcrypt
&&
\
rm
-rf
/var/lib/apt/lists/
*
# Install composer
RUN
cd
/tmp
&&
curl
-sS
https://getcomposer.org/installer | php
&&
mv
composer.phar /usr/local/bin/composer
# Setup for EventsAPI application
RUN
rm
/var/www/html/index.html
# Add EventsApi source
ADD
. /var/www/html/EventsAPI
...
...
@@ -11,3 +41,8 @@ RUN cp /var/www/html/EventsAPI/configs/000-default.conf /etc/apache2/sites-avail
RUN
a2ensite default-ssl.conf
# Set access rights for www-data, run composer
RUN
php /var/www/html/EventsAPI/utils/install.php
# Default command
CMD
["apachectl", "-D", "FOREGROUND"]
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