Feature: credentials page & vaultwarden compose setup (#3534)

Co-authored-by: Suchintan <suchintan@users.noreply.github.com>
This commit is contained in:
Alex Angin
2025-10-16 00:50:33 -04:00
committed by GitHub
parent ea2e73f8cc
commit a610292ea2
11 changed files with 595 additions and 5 deletions

View File

@@ -0,0 +1,29 @@
FROM node:24-alpine
# Install dependencies
# Install Bitwarden CLI
RUN apk add --no-cache curl bash && \
npm install -g @bitwarden/cli
# Create non-root user for security
# Create directory for Bitwarden config
RUN addgroup -g 1001 -S bw && adduser -S bw -u 1001 -G bw && \
mkdir -p /app/.config && \
chown -R bw:bw /app/.config
# Copy entrypoint script
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
# Switch to non-root user
USER bw
WORKDIR /app
# Expose port for bw serve
EXPOSE 8087
# Health check
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
CMD curl -f http://localhost:8087/status || exit 1
ENTRYPOINT ["/entrypoint.sh"]