1
0
forked from Cutlery/immich

Compare commits

...

1 Commits

Author SHA1 Message Date
mertalev
2123e5c008
fun with bun 2024-03-23 20:50:45 -04:00
2 changed files with 12 additions and 1 deletions

View File

@ -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

View File

@ -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 "$@"