Add podman support

This commit is contained in:
andrew.greene 2022-01-17 09:31:18 -07:00
parent 58d93300e6
commit 989fbdf0b2
3 changed files with 0 additions and 33 deletions

View File

@ -1,23 +0,0 @@
FROM node:stretch-slim AS builder
USER node
WORKDIR /home/node
COPY --chown=node:node . .
RUN npm install
RUN npm run build
FROM node:stretch-slim
WORKDIR /app
COPY --from=builder --chown=appuser:appuser /home/node/node_modules node_modules
COPY --from=builder --chown=appuser:appuser /home/node/package.json .
COPY --from=builder --chown=appuser:appuser /home/node/packages packages
COPY --from=builder --chown=appuser:appuser /home/node/data/flows.json /root/.node-red/flows.json
EXPOSE 1880
CMD [ "npm", "start" ]

View File

@ -1,6 +0,0 @@
VERSION=$(grep -oE "\"version\": \"(\w*.\w*.\w*.\w*.\w*.)" package.json | cut -d\" -f4)
docker build --rm --no-cache \
--build-arg BUILD_DATE="$(date +"%Y-%m-%dT%H:%M:%SZ")" \
--file Dockerfile \
--tag sparkle-guide:$VERSION .

View File

@ -1,4 +0,0 @@
#!/bin/bash
VERSION=$(grep -oE "\"version\": \"(\w*.\w*.\w*.\w*.\w*.)" package.json | cut -d\" -f4)
docker run -p 1880:1880 -v "$(pwd)"/data/:/root/.node-red/ sparkle-guide:$VERSION &