fix(dockerfile)
This commit is contained in:
@@ -136,3 +136,4 @@ backend/
|
||||
- [SQLAlchemy Documentation](https://docs.sqlalchemy.org/)
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -114,3 +114,4 @@ format = %(levelname)-5.5s [%(name)s] %(message)s
|
||||
datefmt = %H:%M:%S
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -65,3 +65,4 @@ async def unsubscribe_push(
|
||||
|
||||
return {"message": "Unsubscribed successfully"}
|
||||
|
||||
|
||||
|
||||
1
backend/entrypoint.sh
Normal file → Executable file
1
backend/entrypoint.sh
Normal file → Executable file
@@ -27,4 +27,3 @@ else
|
||||
--proxy-headers \
|
||||
--forwarded-allow-ips=*
|
||||
fi
|
||||
|
||||
|
||||
@@ -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`
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -26,3 +26,4 @@ def downgrade() -> None:
|
||||
${downgrades if downgrades else "pass"}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -36,3 +36,4 @@ def downgrade():
|
||||
op.drop_index(op.f('ix_push_subscriptions_id'), table_name='push_subscriptions')
|
||||
op.drop_table('push_subscriptions')
|
||||
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -41,3 +41,4 @@ case "$1" in
|
||||
esac
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 && \
|
||||
|
||||
@@ -50,3 +50,4 @@ npm run build
|
||||
- Les icônes doivent être générées avant le premier build
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -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
4757
frontend/dev-dist/workbox-52524643.js
Normal file
4757
frontend/dev-dist/workbox-52524643.js
Normal file
File diff suppressed because it is too large
Load Diff
1
frontend/dev-dist/workbox-52524643.js.map
Normal file
1
frontend/dev-dist/workbox-52524643.js.map
Normal file
File diff suppressed because one or more lines are too long
@@ -79,3 +79,4 @@
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -151,3 +151,4 @@ function dismissPrompt() {
|
||||
</style>
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -242,3 +242,4 @@ function close() {
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user