-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (20 loc) · 1.04 KB
/
Copy pathDockerfile
File metadata and controls
26 lines (20 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM node:24.1.0-alpine
# tzdata for timezone and net-tools
RUN apk update
RUN apk add tzdata
RUN apk add net-tools
ENV NODE_ENV=production
# PosterX talks to Plex, Jellyfin, Emby, and Kodi over HTTP(S) from settings (no extra image packages).
# In Docker, set the media server "host" to a container name on a shared network, or host.docker.internal
# (see docker-compose.yml extra_hosts and docker-compose.media-servers.example.yml).
#
# Persist these on the host (see docker-compose.yml):
# /usr/src/app/config — settings.json, cache/, ads/, ads-view/, custom-pictures/, *.db, etc.
WORKDIR /usr/src/app
COPY ["package.json", "package-lock.json*", "npm-shrinkwrap.json*", "./"]
RUN npm install --production --silent && mv node_modules ../
COPY . .
RUN mkdir -p config/cache/imagecache config/cache/mp3cache config/cache/randomthemes config/ads config/ads-view config/custom-pictures/default public/custom
EXPOSE 3000
HEALTHCHECK --interval=10s --timeout=5s --retries=3 --start-period=15s CMD node healthcheck.js > /dev/null || exit 1
CMD ["node", "index.js"]