aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <msabate@suse.com>2019-01-17 08:56:48 +0100
committerMiquel Sabaté Solà <msabate@suse.com>2019-01-17 12:16:53 +0100
commit96ce7d938bb7ab2fc1520f703ceddc8e3355ce3f (patch)
treef735939e017501e8a4f86f39a597e83ad00ad5db /Dockerfile
parent13d319d72cc44db35490fd34a71fa69269397668 (diff)
downloadjo.mssola.com-96ce7d938bb7ab2fc1520f703ceddc8e3355ce3f.tar.gz
jo.mssola.com-96ce7d938bb7ab2fc1520f703ceddc8e3355ce3f.zip
Dockerized deployment method
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile27
1 files changed, 27 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..9acbaaa
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,27 @@
+# Copyright (C) 2019 Miquel Sabaté Solà <mikisabate@gmail.com>
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see <https://www.gnu.org/licenses/>.
+
+FROM opensuse/leap:15.0
+MAINTAINER Miquel Sabaté Solà <mikisabate@gmail.com>
+
+RUN useradd --no-create-home --shell /dev/null --system nobody && \
+ zypper ar -f -G obs://home:/mssola/openSUSE_Leap_42.3/ home:mssola && \
+ zypper ar -f -G obs://devel:/languages:/nodejs/openSUSE_Leap_15.0/ devel:languages:nodejs && \
+ zypper ref && \
+ zypper -n in -t pattern devel_basis && \
+ zypper -n in nodejs10 npm10 ruby2.5-devel ruby2.5-rubygem-bundler libxslt-devel gcc-c++ glibc-locale && \
+ zypper -n in --from home:mssola yarn && \
+ npm install -g webpack webpack-cli && \
+ zypper clean -a