fix(dockerfile)
Some checks failed
Deploy to Development / build-and-deploy (push) Has been cancelled
Deploy to Production / build-and-deploy (push) Successful in 33s

This commit is contained in:
EvanChal
2026-01-28 20:47:34 +01:00
parent 97ae75c9bf
commit d68af8d5a1
19 changed files with 4783 additions and 7 deletions

View File

@@ -136,3 +136,4 @@ backend/
- [SQLAlchemy Documentation](https://docs.sqlalchemy.org/)

View File

@@ -114,3 +114,4 @@ format = %(levelname)-5.5s [%(name)s] %(message)s
datefmt = %H:%M:%S

View File

@@ -65,3 +65,4 @@ async def unsubscribe_push(
return {"message": "Unsubscribed successfully"}

1
backend/entrypoint.sh Normal file → Executable file
View File

@@ -27,4 +27,3 @@ else
--proxy-headers \
--forwarded-allow-ips=*
fi

View File

@@ -42,3 +42,4 @@ alembic revision -m "Description de la migration"
- En cas de problème, vous pouvez toujours revenir en arrière avec `alembic downgrade`

View File

@@ -26,3 +26,4 @@ def downgrade() -> None:
${downgrades if downgrades else "pass"}

View File

@@ -36,3 +36,4 @@ def downgrade():
op.drop_index(op.f('ix_push_subscriptions_id'), table_name='push_subscriptions')
op.drop_table('push_subscriptions')

View File

@@ -14,3 +14,4 @@ moviepy>=1.0.3
aiofiles>=0.8.0
python-magic>=0.4.27
pywebpush>=1.14.0
opencv-python-headless>=4.5.0

View File

@@ -41,3 +41,4 @@ case "$1" in
esac

View File

@@ -73,11 +73,12 @@ services:
VITE_API_URL: ${VITE_API_URL}
VITE_APP_URL: ${VITE_APP_URL}
VITE_UPLOAD_URL: ${VITE_UPLOAD_URL}
ENVIRONMENT: ${ENVIRONMENT}
volumes:
- ./frontend:/app
- /app/node_modules
ports:
- "8082:5173"
- "8082:8082"
networks:
- lediscord_network
restart: unless-stopped

View File

@@ -60,7 +60,7 @@ http { \
# Script d'entrée
RUN echo '#!/bin/sh' > /entrypoint.sh && \
echo 'if [ "$MODE" = "dev" ]; then' >> /entrypoint.sh && \
echo 'if [ "$ENVIRONMENT" = "development" ]; then' >> /entrypoint.sh && \
echo ' echo "🔧 Mode DEVELOPPEMENT"' >> /entrypoint.sh && \
echo ' exec npm run dev -- --host 0.0.0.0 --port 8082' >> /entrypoint.sh && \
echo 'else' >> /entrypoint.sh && \

View File

@@ -50,3 +50,4 @@ npm run build
- Les icônes doivent être générées avant le premier build

View File

@@ -67,7 +67,7 @@ if (!self.define) {
});
};
}
define(['./workbox-9be7f7ba'], (function (workbox) { 'use strict';
define(['./workbox-52524643'], (function (workbox) { 'use strict';
importScripts("/sw-custom.js");
self.skipWaiting();
@@ -101,7 +101,13 @@ define(['./workbox-9be7f7ba'], (function (workbox) { 'use strict';
statuses: [0, 200]
})]
}), 'GET');
workbox.registerRoute(/^https?:\/\/.*\/api\/.*/i, new workbox.NetworkFirst({
workbox.registerRoute(({
url,
request
}) => {
const urlString = url.href || url.toString();
return /^https?:\/\/.*\/api\/.*/i.test(urlString) && request.method === "GET";
}, new workbox.NetworkFirst({
"cacheName": "api-cache",
"networkTimeoutSeconds": 10,
plugins: [new workbox.ExpirationPlugin({
@@ -109,7 +115,7 @@ define(['./workbox-9be7f7ba'], (function (workbox) { 'use strict';
maxAgeSeconds: 300
})]
}), 'GET');
workbox.registerRoute(/^https?:\/\/.*\/uploads\/.*/i, new workbox.CacheFirst({
workbox.registerRoute(/^https?:\/\/.*\/uploads\/.*/i, new workbox.StaleWhileRevalidate({
"cacheName": "uploads-cache",
plugins: [new workbox.ExpirationPlugin({
maxEntries: 100,

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@@ -79,3 +79,4 @@
}

View File

@@ -151,3 +151,4 @@ function dismissPrompt() {
</style>

View File

@@ -242,3 +242,4 @@ function close() {
</script>