mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-21 17:21:09 +01:00
fixed crawlab-sdk issue
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -33,4 +33,4 @@ fi
|
||||
ssh-keygen -q -t rsa -N "" -f ${HOME}/.ssh/id_rsa
|
||||
|
||||
# start backend
|
||||
crawlab
|
||||
crawlab-server
|
||||
Reference in New Issue
Block a user