UNCLASSIFIED
Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Ironbank Containers
O
Opensource
gohugo
hugo
Commits
adf529a6
Commit
adf529a6
authored
Oct 20, 2020
by
Omar Hasan
Committed by
sean.melissari
Oct 20, 2020
Browse files
Fix UBI minimal
parent
bd0c2b5a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
Dockerfile
Dockerfile
+6
-3
README.md
README.md
+1
-1
No files found.
Dockerfile
View file @
adf529a6
...
@@ -2,6 +2,7 @@ ARG BASE_REGISTRY=registry1.dsop.io
...
@@ -2,6 +2,7 @@ ARG BASE_REGISTRY=registry1.dsop.io
ARG
BASE_IMAGE=ironbank/redhat/ubi/ubi8-minimal
ARG
BASE_IMAGE=ironbank/redhat/ubi/ubi8-minimal
ARG
BASE_TAG=8.2
ARG
BASE_TAG=8.2
FROM
${BASE_REGISTRY}/${BASE_IMAGE}:${BASE_TAG}
FROM
${BASE_REGISTRY}/${BASE_IMAGE}:${BASE_TAG}
LABEL
\
LABEL
\
org.opencontainers.image.title="hugo" \
org.opencontainers.image.title="hugo" \
...
@@ -12,11 +13,14 @@ LABEL \
...
@@ -12,11 +13,14 @@ LABEL \
COPY
hugo_0.76.4_Linux-64bit.tar.gz hugo.tar.gz
COPY
hugo_0.76.4_Linux-64bit.tar.gz hugo.tar.gz
RUN
groupadd
-r
hugo
&&
\
RUN
microdnf
-y
install
shadow-utils
tar gzip
--setopt
=
tsflags
=
nodocs
&&
\
groupadd
-r
hugo
&&
\
useradd
-m
-r
hugo
-g
hugo
&&
\
useradd
-m
-r
hugo
-g
hugo
&&
\
tar
-xzf
hugo.tar.gz hugo
&&
\
tar
-xzf
hugo.tar.gz hugo
&&
\
install
-m
755 hugo /usr/bin
&&
\
install
-m
755 hugo /usr/bin
&&
\
rm
-rf
hugo.tar.gz
rm
-rf
hugo.tar.gz
&&
\
microdnf
-y
remove shadow-utils
tar gzip
&&
\
microdnf clean all
USER
hugo
USER
hugo
WORKDIR
/home/hugo
WORKDIR
/home/hugo
...
@@ -24,4 +28,3 @@ WORKDIR /home/hugo
...
@@ -24,4 +28,3 @@ WORKDIR /home/hugo
EXPOSE
1313
EXPOSE
1313
ENTRYPOINT
["hugo"]
ENTRYPOINT
["hugo"]
CMD
["--bind", "0.0.0.0"]
README.md
View file @
adf529a6
...
@@ -16,5 +16,5 @@ Once the site is created and you are in the top level of the `quickstart`
...
@@ -16,5 +16,5 @@ Once the site is created and you are in the top level of the `quickstart`
directory you serve the site like so:
directory you serve the site like so:
```
```
docker run --rm -it -v $PWD:/home/hugo -p 1313:1313 registry1.dsop.io/ironbank/opensource/hugo:0.76.4 server
docker run --rm -it -v $PWD:/home/hugo -p 1313:1313 registry1.dsop.io/ironbank/opensource/hugo:0.76.4 server
--bind 0.0.0.0
```
```
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment