Updates
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
FROM node:lts-trixie
|
||||
|
||||
RUN apt update && apt install -y ca-certificates curl zip unzip wget rsync openssh-client zlib1g wget
|
||||
|
||||
RUN update-ca-certificates
|
||||
|
||||
RUN mkdir /app
|
||||
WORKDIR /app
|
||||
|
||||
RUN curl -fsSL https://bun.sh/install | bash
|
||||
ENV PATH="/root/.bun/bin:${PATH}"
|
||||
|
||||
COPY ./entrypoint.sh /usr/local/bin/entrypoint.sh
|
||||
RUN chmod +x /usr/local/bin/entrypoint.sh
|
||||
|
||||
ENTRYPOINT ["entrypoint.sh"]
|
||||
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
cd /app
|
||||
|
||||
rm -rf /app/node_modules
|
||||
rm -rf /app/.next
|
||||
|
||||
bun install
|
||||
npm rebuild better-sqlite3
|
||||
|
||||
if [ $NODE_ENV = "production" ]; then
|
||||
echo "Production Environment"
|
||||
bun next start -p ${PORT}
|
||||
else
|
||||
echo "Development Environment"
|
||||
bun next dev -p ${PORT}
|
||||
fi
|
||||
Reference in New Issue
Block a user