Skip to content

Commit

Permalink
fix: yarn install extract package err when using GitHub Cache in amd6… (
Browse files Browse the repository at this point in the history
  • Loading branch information
takatost committed Apr 11, 2024
1 parent e15d18a commit 6fa0e40
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion api/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def __init__(self):
# ------------------------
# General Configurations.
# ------------------------
self.CURRENT_VERSION = "0.6.2-fix1"
self.CURRENT_VERSION = "0.6.2"
self.COMMIT_SHA = get_env('COMMIT_SHA')
self.EDITION = "SELF_HOSTED"
self.DEPLOY_ENV = get_env('DEPLOY_ENV')
Expand Down
6 changes: 3 additions & 3 deletions docker/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: '3'
services:
# API service
api:
image: langgenius/dify-api:0.6.2-fix1-fix1
image: langgenius/dify-api:0.6.2
restart: always
environment:
# Startup mode, 'api' starts the API server.
Expand Down Expand Up @@ -150,7 +150,7 @@ services:
# worker service
# The Celery worker for processing the queue.
worker:
image: langgenius/dify-api:0.6.2-fix1
image: langgenius/dify-api:0.6.2
restart: always
environment:
# Startup mode, 'worker' starts the Celery worker for processing the queue.
Expand Down Expand Up @@ -232,7 +232,7 @@ services:

# Frontend web application.
web:
image: langgenius/dify-web:0.6.2-fix1
image: langgenius/dify-web:0.6.2
restart: always
environment:
EDITION: SELF_HOSTED
Expand Down
6 changes: 2 additions & 4 deletions web/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,10 @@ WORKDIR /app/web
COPY package.json .
COPY yarn.lock .

RUN --mount=type=cache,target=/root/.yarn YARN_CACHE_FOLDER=/root/.yarn \
yarn install --frozen-lockfile
RUN yarn install --frozen-lockfile

# if you located in China, you can use taobao registry to speed up
# RUN --mount=type=cache,target=/root/.yarn YARN_CACHE_FOLDER=/root/.yarn \
# yarn install --frozen-lockfile --registry https://registry.npm.taobao.org/
# RUN yarn install --frozen-lockfile --registry https://registry.npm.taobao.org/



Expand Down
2 changes: 1 addition & 1 deletion web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dify-web",
"version": "0.6.2-fix1",
"version": "0.6.2",
"private": true,
"scripts": {
"dev": "next dev",
Expand Down

0 comments on commit 6fa0e40

Please sign in to comment.