Spaces:
Paused
Paused
Create Dockerfile
Browse files- Dockerfile +23 -0
Dockerfile
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM alpine AS builder
|
| 2 |
+
|
| 3 |
+
RUN apk add --no-cache nodejs npm git curl jq python3 python3-dev py3-pip
|
| 4 |
+
|
| 5 |
+
RUN adduser -D app
|
| 6 |
+
USER app
|
| 7 |
+
WORKDIR /home/app
|
| 8 |
+
|
| 9 |
+
RUN git clone https://github.com/louislam/uptime-kuma.git
|
| 10 |
+
WORKDIR /home/app/uptime-kuma
|
| 11 |
+
RUN npm run setup
|
| 12 |
+
|
| 13 |
+
ENV VIRTUAL_ENV=/home/app/venv
|
| 14 |
+
RUN python3 -m venv $VIRTUAL_ENV
|
| 15 |
+
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
|
| 16 |
+
|
| 17 |
+
RUN pip install --no-cache-dir huggingface_hub
|
| 18 |
+
|
| 19 |
+
COPY --chown=app:app sync_data.sh /home/app/uptime-kuma/
|
| 20 |
+
RUN chmod +x /home/app/uptime-kuma/sync_data.sh
|
| 21 |
+
|
| 22 |
+
EXPOSE 3001
|
| 23 |
+
CMD ["/bin/sh", "-c", "./sync_data.sh & node server/server.js"]
|