Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ginkgo
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
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
Fred
ginkgo
Commits
9c56af19
Commit
9c56af19
authored
2 years ago
by
vjrj
Browse files
Options
Downloads
Patches
Plain Diff
Added Docker support (wip)
parent
a2798e5d
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
+38
-0
38 additions, 0 deletions
Dockerfile
with
38 additions
and
0 deletions
Dockerfile
0 → 100644
+
38
−
0
View file @
9c56af19
# Dockerfile
FROM
nginx:latest
RUN
DEBIAN_FRONTEND
=
noninteractive apt-get update
&&
\
DEBIAN_FRONTEND
=
noninteractive apt-get update
&&
apt-get
install
-y
certbot curl
tar
&&
\
rm
-rf
/var/lib/apt/lists/
*
&&
\
apt-get clean
ARG
GINKGO_WEB_VERSION=0.0.9
ARG
GINKGO_WEB_VERSION_PATH=176d988bc6e5c3756973cef2038c7d6c
RUN
curl
-L
https://git.duniter.org/vjrj/ginkgo/uploads/
${
GINKGO_WEB_VERSION_PATH
}
/ginkgo-web-
${
GINKGO_WEB_VERSION
}
.tgz |
tar
xfz -
-C
/usr/share/nginx/html/
--strip-components
=
2
COPY
nginx.conf.template /etc/nginx/nginx.conf.template
RUN
mkdir
-p
/etc/nginx/snippets
&&
\
touch
/etc/nginx/snippets/proxy-gva.conf
&&
\
chmod
644 /etc/nginx/snippets/proxy-gva.conf
COPY
proxy-gva.conf /etc/nginx/snippets/proxy-gva.conf
# Configuration of g1nkgo
COPY
assets/env.production.txt /usr/share/nginx/html/assets/env.production.txt
COPY
assets/img/ /usr/share/nginx/html/assets/img/
# Copy the default nginx configuration and g1nkgo conf to restore in empty volumes
RUN
cp
-a
/etc/nginx/ /etc/nginx-default/
# Copy startup.sh (copy previous assets if people mount empty volumes)
COPY
startup.sh /usr/local/bin/startup.sh
RUN
chmod
+x /usr/local/bin/startup.sh
# Exponer los puertos de nginx
EXPOSE
80
EXPOSE
443
CMD
["nginx", "-g", "daemon off;"]
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