Merge pull request #49 from nkbud/nkbud-1

fix the docker path
This commit is contained in:
blueeon 2024-04-27 16:55:01 +08:00 committed by GitHub
commit fc3d59a4e9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 1 deletions

View File

@ -27,7 +27,6 @@ yarn-error.log*
# local env files
.env*.local
.env
# vercel
.vercel

View File

@ -10,6 +10,7 @@ RUN npm run build
FROM node:lts-alpine
WORKDIR /app
COPY package*.json ./
COPY .env ./
RUN npm install --only=production
COPY --from=builder /src/.next ./.next
EXPOSE 3000

View File

@ -327,4 +327,8 @@ const newSunoApi = async (cookie: string) => {
return await sunoApi.init();
}
if (! process.env.SUNO_COOKIE) {
console.log("Environment does not contain SUNO_COOKIE.", process.env)
}
export const sunoApi = newSunoApi(process.env.SUNO_COOKIE || '');