mirror of
https://github.com/m0wer/tiddlywiki-docker.git
synced 2026-01-23 02:24:25 +00:00
Merge pull request #4 from ottimo/master
reduce image space using docker best practice
This commit is contained in:
commit
c74960f581
1 changed files with 7 additions and 9 deletions
16
Dockerfile
16
Dockerfile
|
|
@ -1,14 +1,12 @@
|
|||
FROM ubuntu:14.04
|
||||
|
||||
RUN apt-get update
|
||||
|
||||
# Install npm
|
||||
RUN apt-get install -y software-properties-common curl
|
||||
RUN curl -sL https://deb.nodesource.com/setup | bash -
|
||||
RUN apt-get install -y nodejs
|
||||
|
||||
# Install tiddlywiki
|
||||
RUN npm install -g tiddlywiki
|
||||
RUN apt-get update && \
|
||||
apt-get install -y software-properties-common curl && \
|
||||
curl -sL https://deb.nodesource.com/setup | bash - && \
|
||||
apt-get install -y nodejs && \
|
||||
npm install -g tiddlywiki && \
|
||||
apt-get clean && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Setup wiki volume
|
||||
VOLUME /var/lib/tiddlywiki
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue