Skip to content

Commit

Permalink
fix(docker-build): ignore scripts when installing bun dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
manast committed Feb 29, 2024
1 parent 14d385c commit 41e598e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
FROM oven/bun:latest

LABEL org.opencontainers.image.description BullMQ Proxy - Access BullMQ Queues via HTTP

EXPOSE 8080

ENV NODE_ENV=production
Expand All @@ -8,7 +10,7 @@ COPY package.json ./
COPY bun.lockb ./
COPY src ./src

RUN bun install --production
RUN bun install --production --ignore-scripts

CMD bun start
HEALTHCHECK --interval=5s --timeout=5s --retries=3 CMD wget localhost:8080 -q -O - > /dev/null 2>&1
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
"url": "https://github.com/taskforcesh/bullmq-proxy.git"
},
"scripts": {
"prepare": "husky",
"dev": "bun run --watch src/index.ts",
"start": "bun src/index.ts",
"build:declaration": "tsc --emitDeclarationOnly",
"tsc": "tsc --noEmit",
"prepare": "husky",
"commitlint": "commitlint --edit",
"test:e2e": "bun test ./src/e2e-test.ts"
},
Expand Down

0 comments on commit 41e598e

Please sign in to comment.