eagle-viewer/Dockerfile

20 lines
356 B
Docker
Raw Normal View History

FROM node:20-alpine
# Install sshpass (needed for SSH-based NAS access)
RUN apk add --no-cache sshpass openssh-client
WORKDIR /app
COPY package*.json ./
RUN npm ci --omit=dev
COPY server.js index.html ./
# Thumbnail cache lives here — mount a volume for persistence
VOLUME ["/app/.thumb-cache"]
ENV PORT=3737
EXPOSE 3737
CMD ["node", "server.js"]