diff --git a/apps/nextgen/Dockerfile b/apps/nextgen/Dockerfile index 6d020b3..df91395 100644 --- a/apps/nextgen/Dockerfile +++ b/apps/nextgen/Dockerfile @@ -28,4 +28,4 @@ EXPOSE 3001 ENV PORT=3001 ENV NODE_ENV=production -CMD ["node", "src/index.js"] \ No newline at end of file +CMD ["sh", "-c", "mkdir -p ../data && ([ -f ../data/school.db ] || node src/database/init.js) && node src/index.js"] \ No newline at end of file