You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
737 B

FROM alpine:3.7
LABEL maintainer="quentin.mcgaw@gmail.com" \
description="Run the latest StackEdit server in a Docker container" \
download="179MB" \
size="581MB" \
ram="340MB-500MB" \
cpu_usage="Very low" \
github="https://github.com/qdm12/stackedit-docker"
RUN apk add -q --progress --update --no-cache git nodejs && \
git clone https://github.com/benweet/stackedit.git && \
cd stackedit && \
rm -rf .git .dockerignore .gitignore .travis.yml CHANGELOG.md \
Dockerfile LICENSE README.md && \
npm --silent install && \
npm --silent run build && \
apk del -q --progress --purge git && \
rm -rf /var/cache/apk/*
EXPOSE 8080
WORKDIR /stackedit
ENTRYPOINT npm start