File size: 889 Bytes
93e92e0 d30fd97 93e92e0 d30fd97 93e92e0 d30fd97 93e92e0 d30fd97 93e92e0 1b4f629 |
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 27 28 29 30 31 32 33 34 35 36 37 38 39 |
# FROM alpine AS builder
# RUN apk add --no-cache nodejs npm git
# RUN npm install npm -g
# RUN adduser -D app
# USER app
# WORKDIR /home/app
# RUN git clone https://github.com/louislam/uptime-kuma.git
# WORKDIR /home/app/uptime-kuma
# RUN npm run setup
# EXPOSE 3001
# CMD ["node", "server/server.js"]
FROM alpine AS builder
RUN apk add --no-cache nodejs npm git curl jq python3 python3-dev py3-pip
RUN adduser -D app
USER app
WORKDIR /home/app
RUN git clone https://github.com/louislam/uptime-kuma.git
WORKDIR /home/app/uptime-kuma
RUN npm run setup
ENV VIRTUAL_ENV=/home/app/venv
RUN python3 -m venv $VIRTUAL_ENV
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
RUN pip install --no-cache-dir huggingface_hub
COPY --chown=app:app sync_data.sh /home/app/uptime-kuma/
RUN chmod +x /home/app/uptime-kuma/sync_data.sh
EXPOSE 3001
CMD ["/bin/sh", "-c", "./sync_data.sh & node server/server.js"] |