Skip to content

Commit e601816

Browse files
authored
Merge pull request #319 from fosrl/dev
1.0.1
2 parents eb73da8 + 7a46cf3 commit e601816

File tree

33 files changed

+15663
-513
lines changed

33 files changed

+15663
-513
lines changed

.dockerignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ next-env.d.ts
2222
*.log
2323
.machinelogs*.json
2424
*-audit.json
25-
package-lock.json
2625
install/
2726
bruno/
2827
LICENSE

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ next-env.d.ts
2323
.machinelogs*.json
2424
*-audit.json
2525
migrations
26-
package-lock.json
2726
tsconfig.tsbuildinfo
2827
config/config.yml
2928
dist

Dockerfile

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@ FROM node:20-alpine AS builder
22

33
WORKDIR /app
44

5-
COPY package.json ./
6-
7-
RUN npm install
5+
COPY package.json package-lock.json ./
6+
RUN npm ci
87

98
COPY . .
109

@@ -14,21 +13,19 @@ RUN npm run build
1413

1514
FROM node:20-alpine AS runner
1615

17-
RUN apk add --no-cache curl
18-
1916
WORKDIR /app
2017

21-
COPY package.json ./
18+
# Curl used for the health checks
19+
RUN apk add --no-cache curl
2220

23-
RUN npm install --omit=dev
21+
COPY package.json package-lock.json ./
22+
RUN npm ci --only=production && npm cache clean --force
2423

25-
COPY --from=builder /app/.next ./.next
24+
COPY --from=builder /app/.next/standalone ./
25+
COPY --from=builder /app/.next/static ./.next/static
2626
COPY --from=builder /app/dist ./dist
2727
COPY --from=builder /app/init ./dist/init
2828

29-
COPY config/config.example.yml ./dist/config.example.yml
30-
COPY config/traefik/traefik_config.example.yml ./dist/traefik_config.example.yml
31-
COPY config/traefik/dynamic_config.example.yml ./dist/dynamic_config.example.yml
3229
COPY server/db/names.json ./dist/names.json
3330

3431
COPY public ./public

config/traefik/dynamic_config.example.yml

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

config/traefik/traefik_config.example.yml

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

install/config/crowdsec/docker-compose.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,9 @@ services:
2222
- ./config/crowdsec_logs/syslog:/var/log/syslog:ro # syslog
2323
- ./config/crowdsec_logs:/var/log # crowdsec logs
2424
- ./config/traefik/logs:/var/log/traefik # traefik logs
25+
ports:
26+
- 6060:6060 # metrics endpoint for prometheus
27+
expose:
28+
- 6060 # metrics endpoint for prometheus
2529
restart: unless-stopped
2630
command: -t # Add test config flag to verify configuration

internationalization/es.md

Lines changed: 291 additions & 0 deletions
Large diffs are not rendered by default.

next.config.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
const nextConfig = {
33
eslint: {
44
ignoreDuringBuilds: true,
5-
}
5+
},
6+
output: "standalone"
67
};
78

89
export default nextConfig;

0 commit comments

Comments
 (0)