Update Dockerfile
Browse files- Dockerfile +11 -3
Dockerfile
CHANGED
|
@@ -1,7 +1,6 @@
|
|
| 1 |
FROM alpine AS builder
|
| 2 |
-
RUN apk add --no-cache nodejs npm git
|
| 3 |
|
| 4 |
-
RUN
|
| 5 |
|
| 6 |
RUN adduser -D app
|
| 7 |
USER app
|
|
@@ -11,5 +10,14 @@ RUN git clone https://github.com/louislam/uptime-kuma.git
|
|
| 11 |
WORKDIR /home/app/uptime-kuma
|
| 12 |
RUN npm run setup
|
| 13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
EXPOSE 3001
|
| 15 |
-
CMD ["
|
|
|
|
| 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
|
|
|
|
| 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"]
|