-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
34 lines (30 loc) · 969 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
FROM ubuntu:trusty
# Installing Go
RUN apt-get install -y curl
RUN curl -O https://storage.googleapis.com/golang/go1.5.2.linux-amd64.tar.gz
RUN su root -c "tar -C /usr/local -xzf go1.5.2.linux-amd64.tar.gz"
ENV PATH=$PATH:/usr/local/go/bin
RUN mkdir $HOME/go
ENV GOPATH=$HOME/go
ENV PATH=$PATH:$GOPATH/bin
RUN apt-get install -y git
#Installing Caddy
RUN apt-get install -y wget
RUN wget https://github.com/mholt/caddy/releases/download/v0.8.1/caddy_linux_amd64.tar.gz
RUN mkdir /usr/local/caddy
RUN mkdir /usr/local/caddy/bin
RUN su root -c "tar -C /usr/local/caddy/bin -xzf caddy_linux_amd64.tar.gz"
ENV PATH=$PATH:/usr/local/caddy/bin
RUN cd $HOME/go
#Installing Hugo
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install -y mercurial
RUN go get -v github.com/spf13/hugo
RUN mkdir /usr/local/hugo
RUN mkdir /usr/local/hugo/bin
WORKDIR $GOPATH/bin/
RUN cp hugo /usr/local/hugo/bin
ENV PATH=$PATH:/usr/local/hugo/bin
EXPOSE 22 80
ENTRYPOINT ["/bin/bash"]