zxwreader commited on
Commit
7fc66ea
·
verified ·
1 Parent(s): d0cc27b

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +22 -0
Dockerfile ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM alpine:latest
2
+
3
+ WORKDIR /app
4
+
5
+ RUN apk --no-cache add ca-certificates wget python3 py3-pip curl jq tar bash
6
+
7
+ RUN wget https://github.com/synctv-org/synctv/releases/download/v0.9.12/synctv-linux-amd64 -O synctv
8
+
9
+ RUN chmod +x synctv
10
+
11
+ RUN mkdir -p /app/data
12
+ RUN chmod -R 777 /app/data
13
+
14
+ ENV VIRTUAL_ENV=/opt/venv
15
+ RUN python3 -m venv $VIRTUAL_ENV
16
+ ENV PATH="$VIRTUAL_ENV/bin:$PATH"
17
+ RUN pip install --no-cache-dir huggingface_hub
18
+
19
+ COPY sync_data.sh /app/
20
+ RUN chmod +x /app/sync_data.sh
21
+
22
+ CMD ["/bin/bash", "-c", "/app/sync_data.sh"]