fixed crawlab-sdk issue

This commit is contained in:
marvzhang
2020-02-18 17:10:08 +08:00
parent 51a01e1f32
commit 48ff9324f0
3 changed files with 15 additions and 3 deletions

View File

@@ -45,7 +45,9 @@ RUN pip install scrapy pymongo bs4 requests crawlab-sdk scrapy-splash
ADD . /app
# copy backend files
COPY --from=backend-build /go/bin/crawlab /usr/local/bin
RUN mkdir -p /opt/bin
COPY --from=backend-build /go/bin/crawlab /opt/bin
RUN cp /opt/bin/crawlab /usr/local/bin/crawlab-server
# copy frontend files
COPY --from=frontend-build /app/dist /app/dist
@@ -57,6 +59,10 @@ WORKDIR /app/backend
# timezone environment
ENV TZ Asia/Shanghai
# language environment
ENV LC_ALL C.UTF-8
ENV LANG C.UTF-8
# frontend port
EXPOSE 8080

View File

@@ -43,7 +43,9 @@ RUN pip install scrapy pymongo bs4 requests crawlab-sdk scrapy-splash -i https:/
ADD . /app
# copy backend files
COPY --from=backend-build /go/bin/crawlab /usr/local/bin
RUN mkdir -p /opt/bin
COPY --from=backend-build /go/bin/crawlab /opt/bin
RUN cp /opt/bin/crawlab /usr/local/bin/crawlab-server
# copy frontend files
COPY --from=frontend-build /app/dist /app/dist
@@ -55,6 +57,10 @@ WORKDIR /app/backend
# timezone environment
ENV TZ Asia/Shanghai
# language environment
ENV LC_ALL C.UTF-8
ENV LANG C.UTF-8
# frontend port
EXPOSE 8080

View File

@@ -33,4 +33,4 @@ fi
ssh-keygen -q -t rsa -N "" -f ${HOME}/.ssh/id_rsa
# start backend
crawlab
crawlab-server