mirror of
https://github.com/dennisreimann/kindle-display.git
synced 2026-08-13 12:33:45 +02:00
21 lines
642 B
Docker
21 lines
642 B
Docker
FROM node:24-slim AS builder
|
|
WORKDIR /build
|
|
RUN apt-get update
|
|
RUN apt-get install -y git python3 build-essential
|
|
COPY . .
|
|
RUN npm ci --production
|
|
|
|
FROM node:24-slim
|
|
WORKDIR /build
|
|
RUN apt-get update
|
|
RUN apt-get install -y firefox-esr pngcrush jo jq torsocks curl cron
|
|
COPY --from=builder /build .
|
|
ADD .env.sample .env
|
|
RUN echo "PATH=/bin:/usr/bin:/usr/local/bin\n* * * * * root /bin/bash /build/cron.sh > /build/cron.log\n#" | crontab -
|
|
RUN service cron start
|
|
EXPOSE 3030
|
|
CMD ["npm", "start"]
|
|
|
|
# docker build --load -t kindle-display .
|
|
# docker run --name kindle-display -p 3030:3030 -it kindle-display
|
|
# docker exec -it kindle-display bash
|