Skip to content

Commit

Permalink
Merge pull request #2 from aripalo/sharp-support
Browse files Browse the repository at this point in the history
Closes #1
aripalo authored Feb 21, 2018

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents 38ade91 + d9066fe commit 9d258ba
Showing 3 changed files with 11 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -2,3 +2,7 @@
site/node_modules
site/public
site/.cache

# This is ignored in this Docker image project as we don't really wan't to build
# sites here locally, instead site folder used for testing gatsby workflows.
/site
9 changes: 7 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -2,8 +2,13 @@ FROM node:9.5-alpine

EXPOSE 8000

RUN apk update && apk add git
RUN npm install -g [email protected]
RUN apk update && \
apk add --update --repository http://dl-3.alpinelinux.org/alpine/edge/testing vips-tools vips-dev fftw-dev gcc g++ make libc6-compat && \
apk add git && \
apk add python && \
rm -rf /var/cache/apk/*

RUN npm install --global gatsby --no-optional [email protected]

RUN mkdir -p /site
WORKDIR /site
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -4,7 +4,6 @@ Develop & Build [GatsbyJS](https://www.gatsbyjs.org/) static sites within a
- 🚮 **Clutter-free host machine**: No need to install Node/Gatsby/Webpack/etc on your host machine! Only Docker required (tested on `v17.12.0`).
- 🏗 **Easy setup**: Automatic GatsbyJS site initializion with [`gatsby-starter-default`](http://gatsbyjs.github.io/gatsby-starter-default/) (unless already initialized)
- 👍 **Simple CLI API**: [`develop`/`stage`/`build`](#usage)
- 🍃 **Lightweight**'ish Docker image (size only ~`250 MB`)
- 🆕 **Recent NodeJS**: Container based on [NodeJS `v9.5` running in Alpine Linux](https://github.com/nodejs/docker-node/blob/db3b27c8388136b5e529861d7c3fa12fd8328301/9/alpine/Dockerfile)
- 📃 [MIT](https://github.com/aripalo/gatsby-docker/blob/master/LICENSE)-licensed

0 comments on commit 9d258ba

Please sign in to comment.