mc6 commited on
Commit
292e468
·
verified ·
1 Parent(s): 4f339d2

Create dockerfile

Browse files
Files changed (1) hide show
  1. dockerfile +23 -0
dockerfile ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM hectorqin/reader:latest
2
+
3
+ RUN apk update && \
4
+ apk add --no-cache python3 python3-dev py3-pip curl libxml2-dev libxslt-dev gcc musl-dev && \
5
+ rm -rf /var/cache/apk/*
6
+
7
+ RUN mkdir -p /logs /storage /file-uploads /data
8
+
9
+ RUN chmod a+w /logs /storage /file-uploads /data
10
+
11
+ ENV VIRTUAL_ENV=/opt/venv
12
+ RUN python3 -m venv $VIRTUAL_ENV
13
+ ENV PATH="$VIRTUAL_ENV/bin:$PATH"
14
+
15
+ RUN pip install --upgrade pip
16
+
17
+ RUN pip install --no-cache-dir requests webdavclient3
18
+
19
+ COPY sync_data.sh /sync_data.sh
20
+
21
+ RUN chmod +x /sync_data.sh
22
+
23
+ CMD ["/bin/sh", "/sync_data.sh"]