updated dockerfile and git workflow

This commit is contained in:
marvzhang
2021-07-16 15:15:14 +08:00
parent 6c267f75b0
commit 0aab212bf9
6 changed files with 147 additions and 165 deletions

View File

@@ -1,4 +1,4 @@
FROM golang:1 AS backend-build
FROM golang:1.15 AS backend-build
WORKDIR /go/src/app
COPY ./backend .
@@ -18,7 +18,7 @@ WORKDIR /app
#RUN npm config set unsafe-perm true
#RUN npm install -g yarn && yarn install
RUN yarn install && yarn run build:prod
RUN yarn install && yarn run build
# images
FROM ubuntu:latest
@@ -38,7 +38,7 @@ RUN chmod 777 /tmp \
# install backend
RUN pip install scrapy pymongo bs4 requests crawlab-sdk scrapy-splash
RUN pip install scrapy pymongo bs4 requests crawlab-sdk
# add files
COPY ./backend/conf /app/backend/conf