Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
web-service-demo
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
Service Desk
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
UNL
web-service-demo
Commits
d208eac0
Verified
Commit
d208eac0
authored
5 years ago
by
David Beniamine
Browse files
Options
Downloads
Patches
Plain Diff
Two stages docker build that creates unl2rdf jar
parent
2b2bbbb7
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+30
-1
30 additions, 1 deletion
Dockerfile
with
30 additions
and
1 deletion
Dockerfile
+
30
−
1
View file @
d208eac0
FROM
debian:buster
FROM
debian:buster
As
base
RUN
apt-get update
RUN
apt-get update
RUN
apt-get
-y
upgrade
RUN
apt-get
-y
upgrade
RUN
apt-get update
RUN
apt-get update
FROM
base
As
builder
ARG
GIT_VERSION=1-project-creation
RUN
apt-get
install
-y
\
apache2
\
git
\
maven
\
openjdk-11-jdk
WORKDIR
/opt
RUN
git clone https://gitlab.tetras-libre.fr/unl/unl2rdf
WORKDIR
/opt/unl2rdf
RUN
git checkout
$GIT_VERSION
RUN
mvn package
FROM
base
RUN
apt-get
install
-y
\
RUN
apt-get
install
-y
\
apache2
\
apache2
\
graphviz
\
libapache2-mod-wsgi-py3
\
libapache2-mod-wsgi-py3
\
openjdk-11-jre
\
python-dev
\
python-dev
\
python3-pip
python3-pip
...
@@ -19,7 +44,11 @@ RUN a2dissite 000-default
...
@@ -19,7 +44,11 @@ RUN a2dissite 000-default
RUN
a2ensite flask
RUN
a2ensite flask
COPY
--from=builder /opt/unl2rdf/target/*.jar /opt/
# Force code reloading
# Force code reloading
RUN
sed
-i
's/^\(\s*MaxConnectionsPerChild\s*\) 0/\1 1/g'
/etc/apache2/mods-enabled/mpm_event.conf
RUN
sed
-i
's/^\(\s*MaxConnectionsPerChild\s*\) 0/\1 1/g'
/etc/apache2/mods-enabled/mpm_event.conf
WORKDIR
/var/www/app/app
ENTRYPOINT
["apache2ctl", "-DFOREGROUND"]
ENTRYPOINT
["apache2ctl", "-DFOREGROUND"]
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