Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
FROM dockerhub.cloud/library/python:3.7

# 配置环境变量
ENV PYTHONUNBUFFERED 1
#ARG PIP_MIRROR

# 安装依赖环境
RUN mkdir /app
COPY requirements.txt /app
# RUN pip install -r /app/requirements.txt -i "${PIP_MIRROR}"
RUN pip install -r /app/requirements.txt -i https://mirrors.aliyun.com/pypi/simple/
# 拷贝项目代码
COPY . /app
WORKDIR /app/thrillerbark

RUN chmod +x start.sh

EXPOSE 8000

ENTRYPOINT ["sh", "./start.sh"]
4 changes: 2 additions & 2 deletions office/api/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ def img2Cartoon(path, client_api='OVALewIvPyLmiNITnceIhrYf', client_secret='rpBQ


# @except_dec()
def down4img(url, output_name='down4img', type='jpg'):
poimage.down4img(url, output_name, type)
def down4img(url, output_path='.', output_name='down4img', type='jpg'):
poimage.down4img(url, output_path, output_name, type)
# mainImage.down4img(url, output_name, type)


Expand Down
147 changes: 0 additions & 147 deletions office/core/ExcelType.py

This file was deleted.

140 changes: 0 additions & 140 deletions office/core/FileType.py

This file was deleted.

Loading