Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.git
.gitignore
LICENSE.md
README.md
17 changes: 17 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM node:8

RUN apt-get update && apt-get -y install build-essential

WORKDIR /app

COPY package*.json ./

RUN npm install

COPY / ./

RUN cp settings-example.json settings.json

EXPOSE 3000

CMD ["node", "server.js"]
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ A website that provides placeholder images for every case, web or print, on almo
1. Edit `settings.json` to your liking (You'll also need to set your Flickr api key in there)
1. `npm start`

## Installation with Docker
1. Clone repository
1. `docker build -t loremflickr-node . && docker run -p 3000:3000 loremflickr-node`

## Settings
Settings can be set either by the `settings.json` file or by environmental variables (or both!). When using environmental variables you will need to use the `loremflickr_` prefix. For example: `export loremflickr_cache_expire=3600000`. Environmental variables take priority over `settings.json`.

Expand Down