1
0
forked from Cutlery/immich

fun with bun

This commit is contained in:
mertalev 2024-03-01 12:01:01 -05:00
parent c85563da50
commit 2123e5c008
No known key found for this signature in database
GPG Key ID: 9181CD92C0A1C5E3
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 "$@"