mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-21 17:21:09 +01:00
updated Dockerfile
This commit is contained in:
@@ -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
|
||||
RUN yarn install && yarn run build:docker
|
||||
|
||||
# images
|
||||
FROM ubuntu:latest
|
||||
|
||||
@@ -19,7 +19,7 @@ RUN rm /app/.npmrc
|
||||
#RUN npm config set unsafe-perm true
|
||||
#RUN npm install -g yarn && yarn install
|
||||
|
||||
RUN yarn install && yarn run build
|
||||
RUN yarn install && yarn run build:docker
|
||||
|
||||
# images
|
||||
FROM ubuntu:latest
|
||||
|
||||
@@ -41,15 +41,14 @@ Three methods:
|
||||
|
||||
### Pre-requisite (Docker)
|
||||
- Docker 18.03+
|
||||
- Redis 5.x+
|
||||
- MongoDB 3.6+
|
||||
- Docker Compose 1.24+ (optional but recommended)
|
||||
|
||||
### Pre-requisite (Direct Deploy)
|
||||
- Go 1.12+
|
||||
- Node 8.12+
|
||||
- Redis 5.x+
|
||||
- MongoDB 3.6+
|
||||
- SeaweedFS
|
||||
|
||||
## Quick Start
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
# replace absolute api url to relative
|
||||
jspath=`ls /app/dist/js/app.*.js`
|
||||
sed -i "s?http:\/\/localhost:8000?\/api?g" ${jspath}
|
||||
jspath=`ls /app/dist/js/index.*.js`
|
||||
sed -i "s?###VUE_APP_API_BASE_URL###?\/api?g" ${jspath}
|
||||
|
||||
# replace default api path to new one
|
||||
# if [ "${CRAWLAB_API_ADDRESS}" = "" ];
|
||||
|
||||
2
frontend/.env.docker
Normal file
2
frontend/.env.docker
Normal file
@@ -0,0 +1,2 @@
|
||||
NODE_ENV='production'
|
||||
VUE_APP_API_BASE_URL='VUE_APP_API_BASE_URL'
|
||||
@@ -5,6 +5,7 @@
|
||||
"scripts": {
|
||||
"serve": "vue-cli-service serve --port=8081",
|
||||
"build": "vue-cli-service build",
|
||||
"build:docker": "vue-cli-service build --mode docker",
|
||||
"lint": "vue-cli-service lint",
|
||||
"test": "jest"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user