shivam413 commited on
Commit
16aa6cb
·
verified ·
1 Parent(s): 1628be8

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -2
Dockerfile CHANGED
@@ -31,10 +31,10 @@ ENV PUBLIC_DOMAIN="https://shivam413-Streamer.hf.space"
31
  ENV PORT=7860
32
  EXPOSE 7860
33
 
34
- LABEL org.opencontainers.image.url="https://web-syncplay.de" \
35
  org.opencontainers.image.description="Watch videos or play music in sync with your friends" \
36
  org.opencontainers.image.title="Web-SyncPlay" \
37
- maintainer="Yasamato <https://github.com/Yasamato>"
38
 
39
  RUN addgroup -g 1001 -S nodejs && \
40
  adduser -S nextjs -u 1001 && \
@@ -48,6 +48,9 @@ COPY --from=builder /app/package.json ./package.json
48
  COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
49
  COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static
50
 
 
 
 
51
  USER nextjs
52
 
53
  # Next.js will pick up PORT env var
 
31
  ENV PORT=7860
32
  EXPOSE 7860
33
 
34
+ LABEL org.opencontainers.image.url="https://shivam413-Streamer.hf.space" \
35
  org.opencontainers.image.description="Watch videos or play music in sync with your friends" \
36
  org.opencontainers.image.title="Web-SyncPlay" \
37
+ maintainer="charlie <t.me/yucant>"
38
 
39
  RUN addgroup -g 1001 -S nodejs && \
40
  adduser -S nextjs -u 1001 && \
 
48
  COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
49
  COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static
50
 
51
+ # Ensure Next.js cache directory exists and is writable
52
+ RUN mkdir -p /app/.next/cache && chown -R nextjs:nodejs /app/.next
53
+
54
  USER nextjs
55
 
56
  # Next.js will pick up PORT env var