Files
HomeBase/Dockerfile
Spencer 9c72b00b1b
Some checks failed
Deploy to BeePC / deploy (push) Has been cancelled
feat: Implement image fetching and storage system
- Add image-fetcher module for downloading and saving images from various sources.
- Create storage module for managing image files, including downloading, verifying integrity, and cleaning up orphaned files.
- Develop gallery HTML page for displaying images with sorting and filtering options.
- Set up RESTful API routes for image management, including fetching, adding tags, and deleting images.
- Introduce setup script for initializing the database and configuring image sources.
- Implement a batch process for verifying image integrity and cleaning up old images.
- Add setup batch script for easy installation and configuration of the image storage system.
2026-02-12 13:13:36 -05:00

24 lines
406 B
Docker

FROM node:18-alpine
WORKDIR /app
COPY package*.json ./
RUN npm install --omit=dev
COPY . .
# Create data directory for persistent storage
RUN mkdir -p /app/data/images && \
chown -R node:node /app && \
chmod -R 755 /app/data
# Install avahi for mDNS support (.local hostname resolution)
RUN apk add --no-cache avahi avahi-tools libc6-compat
EXPOSE 3001
USER node
CMD ["node", "server.js"]