Add Stockroom container application
This commit is contained in:
+13
@@ -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"]
|
||||
Reference in New Issue
Block a user