瀏覽代碼

fix: docker

double.huang 4 年之前
父節點
當前提交
fad0880c55
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      Dockerfile

+ 3 - 1
Dockerfile

@@ -1,8 +1,10 @@
 FROM alpine
 ADD i2-bill-erp.tar.gz /app/
 
+RUN echo "echo '127.0.0.1 i2-bill-erp' > /etc/hosts" >> /app/entrypoint.sh
+RUN echo "/app/i2-bill-erp -f /app/etc/transform.yaml" >> /app/entrypoint.sh
 
 VOLUME [ "/app/etc" ]
 EXPOSE 8888
 WORKDIR /app
-CMD ["/app/i2-bill-erp", "-f", "/app/etc/transform.yaml"]
+ENTRYPOINT ["/app/entrypoint.sh"]