Comments (11)
这是我的Dockerfile
# Backend Dockerfile
FROM python:3.11
# Install system dependencies
RUN apt-get update && apt-get install -y libmagic1 && rm -rf /var/lib/apt/lists/*
# Copy the working directory
COPY . .
# Set the working directory
WORKDIR /backend
RUN rm poetry.lock
RUN pip install .
CMD exec uvicorn app.server:app --host 0.0.0.0 --port $PORT
from opengpts.
You don't need to remove any lines from the docker file. Just do the opposite of what was in this commit: d72f412
from opengpts.
Yeah, I got the same error.
` => [backend 2/6] RUN apt-get update && apt-get install -y libmagic1 && rm -rf /var/lib/apt/lists/* 5.2s
=> [frontend 2/6] WORKDIR /frontend 0.1s
=> [frontend 3/6] COPY ./frontend/package.json ./ 0.1s
=> [frontend 4/6] COPY ./frontend/yarn.lock ./ 0.0s
=> CANCELED [frontend 5/6] RUN yarn install 5.7s
=> [backend 3/6] WORKDIR /backend 0.0s
=> [backend 4/6] COPY . . 0.2s
=> ERROR [backend 5/6] RUN rm poetry.lock 0.4s
[backend 5/6] RUN rm poetry.lock:
0.328 rm: cannot remove 'poetry.lock': No such file or directory
failed to solve: process "/bin/sh -c rm poetry.lock" did not complete successfully: exit code: 1
`
from opengpts.
so how to fix this problem?
from opengpts.
so how to fix this problem?
got it. revise the Dockerfile
from opengpts.
how to revise the Dockerfile? please post the new code @WSDzju
from opengpts.
I see that PR #108 is intended to fix this
from opengpts.
OK,I got it.Just delete the line
Run rm poetry.lock
from opengpts.
I have the similar issues. I removed this line from the docker file. Now get the error below. Any suggestions?
=> ERROR [backend 6/6] RUN pip install . 0.9s
[backend 6/6] RUN pip install .:
0.744 ERROR: Directory '.' is not installable. Neither 'setup.py' nor 'pyproject.toml' found.
failed to solve: process "/bin/sh -c pip install ." did not complete successfully: exit code: 1
(base) C:\Dev\opengpts>
from opengpts.
You don't need to remove any lines from the docker file. Just do the opposite of what was in this commit: d72f412
Thanks it worked.
from opengpts.
do what @Qinnnnnn suggested.
replace between the lines COPY . . and WORKDIR /backend
that fixes the issue. no need to delete anything!
from opengpts.
Related Issues (20)
- Editing Assistant: changing agent type overwrites other changes HOT 1
- Editing/viewing a bot: retrieval and files not visible or editable
- Question regarding roadmaps and upcoming features
- Env Variables | Must provide one of the 'base_url' or 'azure_endpoint' arguments HOT 1
- Assistant doesn't seem to have the ability to run Python code HOT 1
- Delete an assistant
- fix error please HOT 2
- Issue with Ingesting/Upserting CSV File in opengpts-backend HOT 2
- Sending a message in a deleted thread leads to a blank screen
- Sequential Custom Tool
- It always returns "Thread not found" by API
- services.postgres.healthcheck value 'start_interval' does not match any of the regexes: '^x-
- run example error
- Groq Provider
- YDC tool broken
- TypeError: string indices must be integers, not 'str' HOT 2
- error when adding message to thread HOT 4
- 'RedisCheckpoint' object has no attribute 'serde' Running Migration Tool HOT 1
- adding GPT4o support HOT 1
- how to limit token
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opengpts.