From b794f4dd4fe5d70267ed2e2ced688efa3c955195 Mon Sep 17 00:00:00 2001 From: Lorenzo Carbonell Date: Mon, 16 May 2022 07:28:23 +0200 Subject: [PATCH] add StandardNotes --- standardnotes/Dockerfile | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 standardnotes/Dockerfile diff --git a/standardnotes/Dockerfile b/standardnotes/Dockerfile new file mode 100644 index 0000000..aa6305e --- /dev/null +++ b/standardnotes/Dockerfile @@ -0,0 +1,28 @@ +FROM ruby:2.7.4-alpine3.14 + +RUN apk add --update --no-cache \ + alpine-sdk \ + nodejs \ + python3 \ + git \ + yarn \ + tzdata + +WORKDIR /app/ +RUN git clone https://github.com/standardnotes/web.git /tmp/ && \ + cp /tmp/package.json \ + /tmp/yarn.lock \ + /tmp/Gemfile \ + /tmp/Gemfile.lock /app/ && \ + yarn install --pure-lockfile && \ + gem install bundler && bundle install && \ + cp -r /tmp/. /app/ && \ + yarn bundle && \ + bundle exec rails assets:precompile + +EXPOSE 3000 + +ENTRYPOINT [ "./docker/entrypoint.sh" ] + +CMD [ "start" ] +