Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +4 -5
Dockerfile
CHANGED
|
@@ -1,6 +1,5 @@
|
|
| 1 |
# TransVar API for HuggingFace Spaces
|
| 2 |
# 仓库: https://github.com/pzweuj/TransVar2API
|
| 3 |
-
# 启动脚本: scripts/hf_startup.sh
|
| 4 |
|
| 5 |
FROM python:3.9-slim
|
| 6 |
|
|
@@ -51,11 +50,11 @@ RUN wget -q -O hg19.fa.gz https://hgdownload.soe.ucsc.edu/goldenPath/hg19/bigZip
|
|
| 51 |
# hg19 GTF 格式的 RefSeq 注释
|
| 52 |
RUN wget -q -O hg19.ncbiRefSeq.gtf.gz https://hgdownload.soe.ucsc.edu/goldenPath/hg19/bigZips/genes/hg19.ncbiRefSeq.gtf.gz
|
| 53 |
|
| 54 |
-
#
|
| 55 |
WORKDIR /app
|
| 56 |
-
|
| 57 |
-
RUN chmod +x /app/start.sh
|
| 58 |
|
| 59 |
EXPOSE 7860
|
| 60 |
|
| 61 |
-
|
|
|
|
|
|
| 1 |
# TransVar API for HuggingFace Spaces
|
| 2 |
# 仓库: https://github.com/pzweuj/TransVar2API
|
|
|
|
| 3 |
|
| 4 |
FROM python:3.9-slim
|
| 5 |
|
|
|
|
| 50 |
# hg19 GTF 格式的 RefSeq 注释
|
| 51 |
RUN wget -q -O hg19.ncbiRefSeq.gtf.gz https://hgdownload.soe.ucsc.edu/goldenPath/hg19/bigZips/genes/hg19.ncbiRefSeq.gtf.gz
|
| 52 |
|
| 53 |
+
# 设置启动脚本权限
|
| 54 |
WORKDIR /app
|
| 55 |
+
RUN chmod +x /app/scripts/hf_startup.sh
|
|
|
|
| 56 |
|
| 57 |
EXPOSE 7860
|
| 58 |
|
| 59 |
+
# 直接使用仓库中的启动脚本
|
| 60 |
+
CMD ["/app/scripts/hf_startup.sh"]
|