mirror of
https://gitlab.w-hs.de/an14051/backerup-website.git
synced 2026-07-27 17:35:29 +00:00
feat: update Docker configuration and .gitignore, remove unused JSON files
This commit is contained in:
+2
-1
@@ -25,7 +25,8 @@ ENV NODE_ENV=production
|
||||
ENV NEXT_TELEMETRY_DISABLED=1
|
||||
|
||||
# Dedicated non-root user
|
||||
RUN addgroup --system --gid 1001 nodejs && \
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends adduser && rm -rf /var/lib/apt/lists/* && \
|
||||
addgroup --system --gid 1001 nodejs && \
|
||||
adduser --system --uid 1001 nextjs
|
||||
|
||||
# Next.js standalone output
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@
|
||||
set -euo pipefail
|
||||
|
||||
REPO_ROOT="$(cd "$(dirname "$0")/.." && pwd)"
|
||||
TAG="${1:-backerup-website:latest}"
|
||||
TAG="${1:-gitea.doomlabs.de/kptltd00m/backerup-website:latest}"
|
||||
|
||||
echo "==> Building image: $TAG"
|
||||
docker build \
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@
|
||||
set -euo pipefail
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
||||
TAG="${1:-backerup-website:latest}"
|
||||
TAG="${1:-gitea.doomlabs.de/kptltd00m/backerup-website:latest}"
|
||||
|
||||
# 1. Build
|
||||
"$SCRIPT_DIR/build.sh" "$TAG"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
services:
|
||||
backerup-website:
|
||||
image: backerup-website:latest
|
||||
image: gitea.doomlabs.de/kptltd00m/backerup-website:latest
|
||||
container_name: backerup-website
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
|
||||
Reference in New Issue
Block a user