Files
frambe/Dockerfile
T

24 lines
523 B
Docker

FROM node:18-alpine
LABEL maintainer="Frambe"
LABEL description="Frambe — lightweight digital photo frame for Immich"
WORKDIR /app
COPY package.json ./
RUN npm install --production && npm cache clean --force
COPY server.js ./
COPY public/ ./public/
EXPOSE 3030
HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \
CMD wget -qO- http://localhost:3030/api/config || exit 1
RUN addgroup -g 1001 -S appgroup && \
adduser -S appuser -u 1001 -G appgroup
USER appuser
CMD ["node", "server.js"]