Giter Club home page Giter Club logo

Comments (11)

Qinnnnnn avatar Qinnnnnn commented on July 3, 2024 2

这是我的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.

malexw avatar malexw commented on July 3, 2024 1

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.

ymg2007 avatar ymg2007 commented on July 3, 2024

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.

WSDzju avatar WSDzju commented on July 3, 2024

so how to fix this problem?

from opengpts.

WSDzju avatar WSDzju commented on July 3, 2024

so how to fix this problem?

got it. revise the Dockerfile

from opengpts.

ymg2007 avatar ymg2007 commented on July 3, 2024

how to revise the Dockerfile? please post the new code @WSDzju

from opengpts.

malexw avatar malexw commented on July 3, 2024

I see that PR #108 is intended to fix this

from opengpts.

ymg2007 avatar ymg2007 commented on July 3, 2024

OK,I got it.Just delete the line
Run rm poetry.lock

from opengpts.

kattapug avatar kattapug commented on July 3, 2024

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.

kattapug avatar kattapug commented on July 3, 2024

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.

shacharbard avatar shacharbard commented on July 3, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.