helper / Dockerfile
playingapi's picture
Update Dockerfile
0b5eb5b verified
raw
history blame contribute delete
636 Bytes
FROM kylsky/pandora_helper_v2
WORKDIR /app
RUN apt-get update && apt-get install -y \
python3 \
python3-pip \
&& rm -rf /var/lib/apt/lists/* \
&& pip3 install --no-cache-dir huggingface_hub
COPY sync_data.sh /app/sync_data.sh
RUN chmod +x /app/sync_data.sh \
&& mkdir -p /app/db \
&& mkdir -p /tmp/hf_cache \
&& chmod -R 777 /app/db \
&& chmod -R 777 /tmp/hf_cache
ENV TZ="Asia/Shanghai" \
ADMIN_NAME="admin" \
PORT=8181 \
REDIRECT_URI="https://playingapi-helper.hf.space" \
HF_HOME=/tmp/hf_cache
EXPOSE 8181
CMD ["/bin/bash", "-c", "/app/sync_data.sh & java -jar /app/my-app.jar"]