diff --git a/Dockerfile b/Dockerfile index 7871539..63e24be 100644 --- a/Dockerfile +++ b/Dockerfile @@ -28,6 +28,8 @@ COPY --from=deps /app/node_modules ./node_modules COPY --from=build /app/dist ./dist COPY --from=build /app/pkg ./pkg RUN echo '{"type":"commonjs"}' > /app/pkg/package.json +# Create data directory for LevelDB with proper permissions +RUN mkdir -p /app/data && chown -R nodejs:nodejs /app/data EXPOSE 9090 USER nodejs CMD ["node", "dist/index.js"]