Skip to content

Commit d1fca70

Browse files
committed
Improve docker image
1 parent 47346c7 commit d1fca70

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ RUN bun install
88

99
COPY src/ ./src/
1010

11-
RUN bun build src/index.ts --outdir dist --target bun --production
11+
RUN bun build src/index.ts --outfile rabbitforexapi --target bun --compile --production
1212

1313
# ---------- Runtime stage ----------
14-
FROM oven/bun:1-distroless
14+
FROM gcr.io/distroless/base-nossl-debian13
1515

1616
WORKDIR /app
1717

18-
COPY --from=builder /app/dist/ /app/
18+
COPY --from=builder /app/rabbitforexapi /app/
1919

2020
EXPOSE 3000/tcp
21-
CMD ["index.js"]
21+
ENTRYPOINT ["/app/rabbitforexapi"]

0 commit comments

Comments
 (0)