forked from Cutlery/immich
fun with bun
This commit is contained in:
parent
c85563da50
commit
2123e5c008
@ -46,6 +46,17 @@ WORKDIR /usr/src/app
|
||||
ENV NODE_ENV=production \
|
||||
NVIDIA_DRIVER_CAPABILITIES=all \
|
||||
NVIDIA_VISIBLE_DEVICES=all
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install --no-install-recommends -yqq curl unzip && \
|
||||
curl -fsSL https://bun.sh/install | bash && \
|
||||
apt-get purge -yqq curl unzip && \
|
||||
apt-get autoremove -yqq && \
|
||||
apt-get clean && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
ENV PATH="${PATH}:~/.bun/bin"
|
||||
|
||||
COPY --from=prod /usr/src/app/node_modules ./node_modules
|
||||
COPY --from=prod /usr/src/app/dist ./dist
|
||||
COPY --from=prod /usr/src/app/bin ./bin
|
||||
|
@ -17,4 +17,4 @@ read_file_and_export "DB_USERNAME_FILE" "DB_USERNAME"
|
||||
read_file_and_export "DB_PASSWORD_FILE" "DB_PASSWORD"
|
||||
read_file_and_export "REDIS_PASSWORD_FILE" "REDIS_PASSWORD"
|
||||
|
||||
exec node /usr/src/app/dist/main "$@"
|
||||
exec ~/.bun/bin/bun run /usr/src/app/dist/main "$@"
|
||||
|
Loading…
x
Reference in New Issue
Block a user