Skip to content

Commit

Permalink
fix: removed tini from dockerimage
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksasiriski committed Nov 3, 2023
1 parent 346a38b commit 560b574
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,11 @@
# use tini to add graceful shutdown
FROM debian:stable-slim as init
RUN apt-get -qq update \
&& apt-get -qq install -y tini

# use the official Bun image
# see all versions at https://hub.docker.com/r/oven/bun/tags
# copy production dependencies and source code into final image
FROM oven/bun:1 as base

WORKDIR /usr/src/app

COPY --from=init /usr/bin/tini /usr/bin/
COPY . .

EXPOSE 3000

# run the app
ENTRYPOINT [ "tini", "--" ]
CMD [ "bun", "run", "start" ]
ENTRYPOINT [ "bun" ]

CMD [ "run", "start" ]

0 comments on commit 560b574

Please sign in to comment.