Improved docker compose integration

This commit is contained in:
Perry Gibson
2024-06-18 12:04:55 +02:00
parent f2804ad5ce
commit bb2881e023
2 changed files with 9 additions and 2 deletions
+5 -1
View File
@@ -10,7 +10,11 @@ RUN npm run build
FROM node:lts-alpine
WORKDIR /app
COPY package*.json ./
COPY .env ./
ARG SUNO_COOKIE
RUN if [ -z "$SUNO_COOKIE" ]; then echo "SUNO_COOKIE is not set" && exit 1; fi
ENV SUNO_COOKIE=${SUNO_COOKIE}
RUN npm install --only=production
COPY --from=builder /src/.next ./.next
EXPOSE 3000