mirror of
https://github.com/alrayyes/docker-alpine-hugo-surge-git-bash
synced 2023-11-14 15:56:27 +00:00
initial import
This commit is contained in:
commit
65c8b359fb
16
Dockerfile
Normal file
16
Dockerfile
Normal file
@ -0,0 +1,16 @@
|
||||
FROM mhart/alpine-node:latest
|
||||
MAINTAINER Ryan Kes <ryan@andthensome.nl>
|
||||
|
||||
ENV HUGO_VERSION 0.16
|
||||
ENV HUGO_BINARY hugo_${HUGO_VERSION}_linux-64bit
|
||||
|
||||
# Install pygments (for syntax highlighting)
|
||||
RUN apk update && apk add py-pygments && rm -rf /var/cache/apk/*
|
||||
|
||||
# Download and Install hugo
|
||||
ADD https://github.com/spf13/hugo/releases/download/v${HUGO_VERSION}/${HUGO_BINARY}.tgz /usr/local/
|
||||
RUN tar xzf /usr/local/${HUGO_BINARY}.tgz -C /usr/local/bin/ \
|
||||
&& rm /usr/local/${HUGO_BINARY}.tgz
|
||||
|
||||
# Install surge client
|
||||
RUN npm install -g surge
|
7
README.md
Normal file
7
README.md
Normal file
@ -0,0 +1,7 @@
|
||||
# Docker Alpine Hugo Surge
|
||||
|
||||
Minimal container with both the hugo and [Hugo](https://gohugo.io) and [Surge client](https://www.npmjs.com/package/surge) installed. Leverages [mhart/alpine-node](https://hub.docker.com/r/mhart/alpine-node/) base image. Inspired by [yunspace/alpine-hugo](https://hub.docker.com/r/yunspace/alpine-hugo/).
|
||||
|
||||
## Usage
|
||||
|
||||
docker run --rm andthensome/alpine-hugo-surge
|
2
docker-compose.yml
Normal file
2
docker-compose.yml
Normal file
@ -0,0 +1,2 @@
|
||||
alpine-hugo-surge:
|
||||
image: 'andthensome/alpine-hugo-surge:latest'
|
Loading…
Reference in New Issue
Block a user