Skip to content

Job application tracker and AI-powered job search assistant. Helps job seekers manage their search journey with AI resume review, job matching, task logging, and application analytics, all while keeping your data private.

Remove add pkg step

Khuram Niaz8b2ab1aaf0ea
diff --git a/Dockerfile b/Dockerfile
index 858fa88..06d41d5 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -31,8 +31,6 @@ WORKDIR /app
# Set environment variables
ENV NEXT_TELEMETRY_DISABLED=1
-RUN apk add --no-cache openssl su-exec
-
RUN addgroup --system --gid 1001 nodejs && \
adduser --system --uid 1001 -h /home/nextjs nextjs
diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh
index 79dea26..8bb996b 100755
--- a/docker-entrypoint.sh
+++ b/docker-entrypoint.sh
@@ -3,7 +3,7 @@ set -e
# Auto-generate AUTH_SECRET if not provided
if [ -z "$AUTH_SECRET" ]; then
- export AUTH_SECRET=$(openssl rand -base64 32)
+ export AUTH_SECRET=$(node -e "console.log(require('crypto').randomBytes(32).toString('base64'))")
echo "AUTH_SECRET was not set — generated a temporary secret for this container."
fi
@@ -13,4 +13,4 @@ npx -y [email protected] migrate deploy
# Fix /data permissions and run app as nextjs user
chown -R nextjs:nodejs /data
export HOME=/home/nextjs
-exec su-exec nextjs node server.js
+exec su -s /bin/sh nextjs -c "node server.js"