Some checks failed
Deploy to BeePC / deploy (push) Has been cancelled
- 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.
24 lines
406 B
Docker
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"]
|