summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Magorsch <arzano@gentoo.org>2020-03-03 02:05:54 +0100
committerMax Magorsch <arzano@gentoo.org>2020-03-03 02:05:54 +0100
commit78259d45d52b1ef8d9a634d86aed11743ea4d39c (patch)
treecfbaa69a939e929175f0b2013cfde7f963a9e243 /Dockerfile
parentRemove Sven Wegener (diff)
downloadplanet-78259d45d52b1ef8d9a634d86aed11743ea4d39c.tar.gz
planet-78259d45d52b1ef8d9a634d86aed11743ea4d39c.tar.bz2
planet-78259d45d52b1ef8d9a634d86aed11743ea4d39c.zip
Initial version of the pluto based planetv2.0.0
Signed-off-by: Max Magorsch <arzano@gentoo.org>
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile25
1 files changed, 25 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 00000000..84f16e4c
--- /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
+