diff --git a/Dockerfile b/Dockerfile index 18395ec..4a8180e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,12 +6,12 @@ ENV NODE_ENV=$NODE_ENV # Set a working directory WORKDIR /usr/src/app -COPY ./cert cert +# COPY ./cert cert # Install Node.js dependencies COPY package.json yarn.lock ./ RUN npm config set registry https://registry.npm.taobao.org #RUN npm config set unsafe-perm true -COPY ./patches patches +# COPY ./patches patches RUN npm install --production; RUN npm run postinstall; diff --git a/production.env b/production.env index e69de29..b77d8fb 100644 --- a/production.env +++ b/production.env @@ -0,0 +1,15 @@ +REDIS_PORT=6379 +REDIS_HOST=127.0.0.1 +REDIS_FAMILY=4 +REDIS_DB=0 +# REDIS_PASSWORD= + +DOC=true + +CLIENT_URI=https://liulinlin.test.qunsense.com/ + +MYSQL_HOST=127.0.0.1 +MYSQL_PORT=3306 +MYSQL_USERNAME=api-visitor +MYSQL_PASSWORD=api-visitor +MYSQL_DATABASE=api-visitor