mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-11 01:20:08 -04:00
Create Dockerfile
This commit is contained in:
parent
7e1fbcbe15
commit
af86d7204f
1 changed files with 24 additions and 0 deletions
24
Dockerfile
Normal file
24
Dockerfile
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
FROM node:22-alpine
|
||||||
|
ARG GIT_REPO=https://github.com/iptv-org/epg.git
|
||||||
|
ARG GIT_BRANCH=master
|
||||||
|
ARG WORKDIR=/epg
|
||||||
|
ENV CRON_SCHEDULE="0 0 * * *"
|
||||||
|
ENV GZIP=false
|
||||||
|
ENV MAX_CONNECTIONS=1
|
||||||
|
ENV DAYS=
|
||||||
|
RUN apk update \
|
||||||
|
&& apk upgrade --available \
|
||||||
|
&& apk add curl git tzdata bash \
|
||||||
|
&& npm install -g npm@latest \
|
||||||
|
&& npm install pm2 -g \
|
||||||
|
&& mkdir $(echo "${WORKDIR}") -p \
|
||||||
|
&& cd $WORKDIR \
|
||||||
|
&& git clone --depth 1 -b $(echo "${GIT_BRANCH} ${GIT_REPO}") . \
|
||||||
|
&& npm install \
|
||||||
|
&& mkdir /public
|
||||||
|
RUN apk del git curl \
|
||||||
|
&& rm -rf /var/cache/apk/*
|
||||||
|
COPY pm2.config.js $WORKDIR
|
||||||
|
WORKDIR $WORKDIR
|
||||||
|
EXPOSE 3000
|
||||||
|
CMD [ "pm2-runtime", "pm2.config.js" ]
|
Loading…
Add table
Add a link
Reference in a new issue