diff options
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..84f16e4 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,25 @@ +FROM ruby:2-alpine + +ARG USER_ID +ARG GROUP_ID + +RUN apk add --update nodejs npm build-base sqlite sqlite-dev sqlite-libs git + +RUN addgroup --gid $GROUP_ID gplanet +RUN adduser --system --disabled-password --gecos '' --uid $USER_ID --ingroup gplanet gplanet + +COPY --chown=gplanet:gplanet . /var/www/planet.gentoo.org +WORKDIR /var/www/planet.gentoo.org + +USER gplanet + +CMD bundle install \ + && npm install \ + && cd node_modules/@gentoo/tyrian \ + && npm install \ + && npm run dist \ + && cd /var/www/planet.gentoo.org \ + && rm -rf build/* \ + && bundle exec pluto update -d data \ + && bundle exec pluto build -o build -d data -t tyrian + |