This repository has been archived on 2021-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
docker-standardnotes/Dockerfile

38 lines
926 B
Docker

FROM node:6-alpine
RUN apk -U upgrade \
&& apk add -t build-dependencies \
git \
curl-dev \
wget \
ruby-dev \
build-base \
&& apk add \
tzdata \
ruby \
ruby-io-console \
ruby-json \
ruby-bigdecimal \
&& git clone https://github.com/standardnotes/web.git /standardnotes \
&& gem install -N rails --version "$RAILS_VERSION" \
&& echo 'gem: --no-document' >> ~/.gemrc \
&& cp ~/.gemrc /etc/gemrc \
&& chmod uog+r /etc/gemrc \
&& rm -rf ~/.gem \
&& cd /standardnotes \
&& bundle config --global silence_root_warning 1 \
&& bundle install --system \
&& npm install \
&& npm install -g bower grunt \
&& bundle exec rake bower:install \
&& grunt \
&& apk del build-dependencies \
&& rm -rf /tmp/* /var/cache/apk/* /tmp/* /root/.gnupg /root/.cache/ /standardnotes/.git
COPY docker /docker
EXPOSE 3000
ENTRYPOINT ["/docker/entrypoint"]
CMD ["start"]