fix: analytics dockerfile

This commit is contained in:
wancat committed 2024-02-29 00:10:11 +08:00
1 parent 48dbac7907
commit 031d7a8ceb
3 files changed
+3 -20

No files matched your search

-17
View File
@@ -12,23 +12,6 @@ jobs:
uses: ./.github/workflows/ci-checks.yml
secrets: inherit
code_review:
permissions:
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Code Review GPT
uses: mattzcarey/code-review-gpt@v0.1.4-alpha
with:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
MODEL: 'gpt-3.5-turbo'
GITHUB_TOKEN: ${{ github.token }}
build:
needs: ci-checks
uses: ./.github/workflows/build.yml
secrets: inherit
+2 -3
View File
@@ -1,11 +1,10 @@
FROM node:20-alpine as build
WORKDIR /app
COPY ./package.json yarn.lock ./
COPY ./package.json yarn.lock tsconfig.json ./
COPY packages/analytics/package.json ./packages/analytics/package.json
COPY packages/models/package.json ./packages/models/package.json
RUN yarn set version berry
RUN yarn install
RUN yarn install --frozen-lockfile
ENV HOST=0.0.0.0
ENV PORT=3001
EXPOSE 3001
+1
View File
@@ -20,6 +20,7 @@
"mongoose": "^8.0.3"
},
"devDependencies": {
"@types/express": "^4.17.21",
"@types/node": "^20.11.20",
"nodemon": "^3.1.0",
"ts-node": "^10.9.2",