File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change
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
+
Original file line number Diff line number Diff line change
1
+ # Building image about my blog using HUGO as a framework to building websites
2
+
3
+ The images is hosted in Dockerhub
You can’t perform that action at this time.
0 commit comments