Add Stockroom container application

This commit is contained in:
mfwadejr
2026-08-29 15:40:38 -04:00
committed by GitHub
parent e4a62e2c32
commit 5f954dfa12
5 changed files with 178 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
FROM node:22-alpine
LABEL org.opencontainers.image.source="https://github.com/mfwadejr/vseebox-stockroom"
LABEL org.opencontainers.image.description="Self-contained vSeeBox inventory and sales tracker"
WORKDIR /app
COPY package.json server.mjs ./
COPY public ./public
RUN mkdir -p /data && chown -R node:node /app /data
ENV PORT=3000 DATA_DIR=/data NODE_ENV=production
USER node
EXPOSE 3000
VOLUME ["/data"]
HEALTHCHECK --interval=30s --timeout=3s --start-period=10s --retries=3 CMD wget -q -O /dev/null http://127.0.0.1:3000/api/health || exit 1
CMD ["node", "server.mjs"]