Skip to content

Commit 5b5cdff

Browse files
Merge dev-dev-fanny into main
2 parents abc24b0 + 146273f commit 5b5cdff

6,362 files changed

Lines changed: 10617 additions & 5295 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

!Dockerfile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
FROM node:18-alpine
2+
WORKDIR /app
3+
4+
# Copier tous les fichiers du projet
5+
COPY . .
6+
7+
# Installer les dépendances
8+
RUN npm install
9+
10+
# Set environment variables
11+
ENV NODE_ENV=development
12+
ENV NEXT_TELEMETRY_DISABLED=1
13+
ENV PORT=3000
14+
ENV HOSTNAME="0.0.0.0"
15+
16+
# Exposer le port
17+
EXPOSE 3000
18+
19+
# Utiliser npm run dev pour le hot reload
20+
CMD ["npm", "run", "dev"]

.gitignore

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,24 @@ next-env.d.ts
4747
*.crt
4848
*.pem
4949
*.csr
50-
nginx/certs/*.crt
51-
nginx/certs/*.key
5250
backup.sql
5351

54-
workervolumes/db/data
52+
/tests
53+
/volumes
54+
/cleanup
55+
/worker_refreshtoken/node_modules
56+
57+
58+
/cerbots
59+
/coverage
60+
/scripts
61+
docker-compose.migration.yml
62+
Dockerfile.migration
63+
docker-compose.yml
64+
Dockerfile
65+
reload.docker-compose.yml
66+
67+
/nginx
68+
nginx.conf
69+
/nginx/certs
70+
!Dockerfile

Dockerfile

Lines changed: 44 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,51 @@
1-
# Stage de build
2-
FROM node:18-alpine AS builder
3-
WORKDIR /app
4-
COPY package*.json ./
5-
RUN npm ci
6-
COPY . .
7-
RUN npm run build
1+
# # Build stage
2+
# FROM node:18-alpine AS builder
3+
# WORKDIR /app
4+
5+
# COPY package*.json ./
6+
# RUN npm install
7+
8+
# COPY . .
9+
# RUN npm run build
10+
11+
# # Production stage
12+
# FROM node:18-alpine AS production
13+
# WORKDIR /app
14+
15+
# ENV NODE_ENV production
16+
# ENV PORT 3000
17+
# ENV HOSTNAME "0.0.0.0"
818

9-
# Stage de production
10-
FROM node:18-alpine AS runner
19+
# COPY package*.json ./
20+
# RUN npm install --production
21+
22+
# COPY --from=builder /app/.next ./.next
23+
# COPY --from=builder /app/public ./public
24+
# COPY --from=builder /app/next.config.js ./
25+
26+
# EXPOSE 3000
27+
28+
# CMD ["npm", "run", "start"]
29+
30+
FROM node:18-alpine
1131
WORKDIR /app
1232

13-
ENV NODE_ENV production
33+
# Copier uniquement les fichiers nécessaires pour npm install
34+
COPY package*.json ./
35+
COPY tsconfig*.json ./
36+
COPY next.config.js ./
37+
38+
# Installer les dépendances avec cache
39+
RUN npm ci
1440

15-
# Copie des fichiers nécessaires
16-
COPY --from=builder /app/public ./public
17-
COPY --from=builder /app/.next/standalone ./
18-
COPY --from=builder /app/.next/static ./.next/static
19-
COPY --from=builder /app/messages ./messages
41+
# Set environment variables
42+
ENV NODE_ENV=development
43+
ENV NEXT_TELEMETRY_DISABLED=1
44+
ENV PORT=3000
45+
ENV HOSTNAME="0.0.0.0"
2046

47+
# Exposer le port
2148
EXPOSE 3000
22-
ENV PORT 3000
23-
ENV HOSTNAME "0.0.0.0"
2449

25-
CMD ["node", "server.js"]
50+
# Utiliser npm run dev pour le hot reload
51+
CMD ["npm", "run", "dev"]
-41.7 KB
Binary file not shown.
-41.5 KB
Binary file not shown.
-25.3 KB
Binary file not shown.

assets/images/defaultAvatar.svg

Lines changed: 0 additions & 4 deletions
This file was deleted.

assets/images/favicon.ico

-481 Bytes
Binary file not shown.

assets/images/groupAvatar.svg

Lines changed: 0 additions & 5 deletions
This file was deleted.

assets/images/home-image.png

-996 KB
Binary file not shown.

0 commit comments

Comments
 (0)