Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ COPY . .
# INSTBYTE_DATA and INSTBYTE_UPLOADS are picked up by db.js and server.js
ENV INSTBYTE_DATA=/data
ENV INSTBYTE_UPLOADS=/data/uploads
ENV INSTBYTE_BOOT=1

# Create the data dir inside image as fallback
RUN mkdir -p /data/uploads
Expand All @@ -22,4 +23,4 @@ HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \
EXPOSE 3000

# Run the server directly — not via instbyte.js (that's the npx bin)
CMD ["npm", "start"]
CMD ["npm", "run", "server"]
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"start": "node bin/instbyte.js",
"dev": "nodemon bin/instbyte.js",
"test": "vitest run",
"test:watch": "vitest"
"test:watch": "vitest",
"server": "node server/server.js"
},
"keywords": [
"lan",
Expand Down Expand Up @@ -52,4 +53,4 @@
"supertest": "^7.2.2",
"vitest": "^2.1.8"
}
}
}
Loading