chriswu25 commited on
Commit
7cefb62
·
verified ·
1 Parent(s): be4492b

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +27 -0
Dockerfile ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM vaultwarden/server:latest
2
+
3
+ RUN apt-get update && \
4
+ apt-get install -y python3 python3-venv python3-pip && \
5
+ apt-get clean && \
6
+ rm -rf /var/lib/apt/lists/*
7
+
8
+ RUN mkdir -p /data && \
9
+ chown -R 1000:1000 /data && \
10
+ chmod -R 700 /data
11
+
12
+ ENV VIRTUAL_ENV=/opt/venv
13
+ RUN python3 -m venv $VIRTUAL_ENV
14
+ ENV PATH="$VIRTUAL_ENV/bin:$PATH"
15
+ RUN pip install --no-cache-dir huggingface_hub
16
+
17
+ ENV ROCKET_ADDRESS=0.0.0.0
18
+ ENV ROCKET_PORT=7860
19
+
20
+ COPY sync_data.sh /
21
+ RUN chmod +x /sync_data.sh
22
+
23
+ EXPOSE 7860
24
+
25
+ USER 1000:1000
26
+
27
+ CMD ["/sync_data.sh"]