Skip to content

Commit

Permalink
fix: create image using production files
Browse files Browse the repository at this point in the history
  • Loading branch information
manast committed Feb 29, 2024
1 parent fec363a commit c939ed6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@ FROM oven/bun:latest

EXPOSE 8080

ENV NODE_ENV=production

COPY package.json ./
COPY bun.lockb ./
COPY src ./src

RUN bun install
RUN bun install --production

CMD bun start
HEALTHCHECK --interval=5s --timeout=5s --retries=3 CMD wget localhost:8080 -q -O - > /dev/null 2>&1
Expand Down

0 comments on commit c939ed6

Please sign in to comment.