Skip to content

Commit 07e01ba

Browse files
committed
hugo ADDED
1 parent b761e16 commit 07e01ba

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

hugo/Dockerfile

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
FROM ubuntu:latest
2+
MAINTAINER Ismael Garcia <tuxisma@gmail.com>
3+
RUN apt-get update && \
4+
apt-get install -y wget
5+
6+
RUN wget --quiet https://github.com/gohugoio/hugo/releases/download/v0.31.1/hugo_0.31.1_Linux-64bit.tar.gz && \
7+
tar -xf hugo_0.31.1_Linux-64bit.tar.gz && \
8+
chmod +x hugo && \
9+
mv hugo /usr/local/bin/hugo && \
10+
rm -rf hugo_0.31.1_Linux-64bit.tar.gz
11+
12+
RUN mkdir /usr/share/blog
13+
WORKDIR /usr/share/blog
14+
15+
EXPOSE 1313
16+
17+
ADD . /usr/share/blog
18+
19+
ENV HUGO_BASE_URL http://localhost:1313
20+
CMD hugo server -b ${HUGO_BASE_URL} --bind=0.0.0.0
21+

hugo/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Building image about my blog using HUGO as a framework to building websites
2+
3+
The images is hosted in Dockerhub

0 commit comments

Comments
 (0)