-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
346a38b
commit 560b574
Showing
1 changed file
with
4 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" ] |