diff --git a/Dockerfile b/Dockerfile index 2e39841..bd074d5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,9 +19,10 @@ COPY --from=build /usr/src/app/sitio/package.json package.real.json RUN sh -c 'echo {\"name\":\"sitio\",\"type\":\"module\",\"dependencies\":$(jq .dependencies < package.real.json)} > package.json' && npm install COPY --from=build /usr/src/app/db-datos node_modules/db-datos COPY --from=build /usr/src/app/sitio/build . +COPY --from=build /usr/src/app/sitio/src/migrate.js . COPY --from=build /usr/src/app/db-datos/drizzle . ENV DB_PATH=/db/db.db EXPOSE 3000 -CMD ["node", "."] \ No newline at end of file +CMD "node migrate.js && node ." \ No newline at end of file diff --git a/sitio/src/hooks.server.ts b/sitio/src/migrate.js similarity index 100% rename from sitio/src/hooks.server.ts rename to sitio/src/migrate.js