mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-03-16 03:32:18 +00:00
refactor: move node and builder images
This commit is contained in:
22
configuration/builder-image/Dockerfile
Normal file
22
configuration/builder-image/Dockerfile
Normal file
@@ -0,0 +1,22 @@
|
||||
FROM docker/compose
|
||||
|
||||
ARG NODE_VERSION="18"
|
||||
|
||||
RUN apk update && apk add nodejs npm git jq curl
|
||||
|
||||
RUN export DOWNLOAD_VERSION=$(curl -fsSL --compressed https://unofficial-builds.nodejs.org/download/release/index.json | \
|
||||
jq --raw-output ".[]|select(.version | startswith(\"v$NODE_VERSION\"))|.version" | head -1) && \
|
||||
curl -fsSLO --compressed "https://unofficial-builds.nodejs.org/download/release/$DOWNLOAD_VERSION/node-$DOWNLOAD_VERSION-linux-x64-musl.tar.xz" && \
|
||||
tar -xJf "node-$DOWNLOAD_VERSION-linux-x64-musl.tar.xz" -C /usr/local --strip-components=1 --no-same-owner && \
|
||||
ln -sf /usr/local/bin/node /usr/local/bin/nodejs
|
||||
|
||||
ADD . /opt/openstapps/projectmanagement
|
||||
|
||||
WORKDIR /opt/openstapps/projectmanagement
|
||||
|
||||
RUN npm ci && \
|
||||
npm run build && \
|
||||
chmod +x /opt/openstapps/projectmanagement/lib/cli.js && \
|
||||
ln -s /opt/openstapps/projectmanagement/lib/cli.js /usr/bin/openstapps-projectmanagement
|
||||
|
||||
CMD []
|
||||
20
configuration/builder-image/package.json
Normal file
20
configuration/builder-image/package.json
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"name": "@openstapps/builder-image",
|
||||
"version": "3.0.0-next.3",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"license": "GPL-3.0-only",
|
||||
"author": "Karl-Philipp Wulfert <krlwlfrt@gmail.com>",
|
||||
"contributors": [
|
||||
"Anselm Stordeur <anselmstordeur@gmail.com>",
|
||||
"Jovan Krunić <jovan.krunic@gmail.com>",
|
||||
"Michel Jonathan Schmitz",
|
||||
"Rainer Killinger <mail-openstapps@killinger.co>",
|
||||
"Thea Schöbl <dev@theaninova.de>"
|
||||
],
|
||||
"files": [
|
||||
"Dockerfile",
|
||||
"README.md",
|
||||
"CHANGELOG.md"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user