Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
novart_test_dev
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
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
p1116214
novart_test_dev
Commits
9e27fcdc
Commit
9e27fcdc
authored
5 years ago
by
YAEGASHI Takeshi
Browse files
Options
Downloads
Patches
Plain Diff
Add some comments in Dockerfile
parent
22f0d5cb
No related branches found
Branches containing commit
Tags
0.51
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+11
-0
11 additions, 0 deletions
Dockerfile
with
11 additions
and
0 deletions
Dockerfile
+
11
−
0
View file @
9e27fcdc
# Dockerfile for Hugo (HUGO=hugo) / Hugo Extended (HUGO=hugo_extended)
# HUGO_VERSION / HUGO_SHA / HUGO_EXTENDED_SHA is automatically updated
# by update.py when new release is available on the upstream.
# Utilize multi-stage builds to make images optimized in size.
# First stage - download prebuilt hugo binary from the GitHub release.
# Use golang image to run https://github.com/yaegashi/muslstack
# on hugo executable to extend its default thread stack size to 8MB
# to work around segmentation fault issues.
FROM
golang:1.12-alpine
ARG
HUGO=hugo
ARG
HUGO_VERSION=0.55.6
...
...
@@ -15,6 +24,8 @@ RUN set -eux && \
RUN
go get github.com/yaegashi/muslstack
RUN
muslstack
-s
0x800000 /usr/bin/hugo
# Second stage - build the final image with minimal apk dependencies.
# alpine:edge is required for muslstack to work as of June 2019.
FROM
alpine:edge
ARG
HUGO=hugo
COPY
--from=0 /usr/bin/hugo /usr/bin
...
...
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