Skip to content

Commit

Permalink
fix(docker): Dockerfile failed to build on RemoteRuntime (#4481)
Browse files Browse the repository at this point in the history
Co-authored-by: tofarr <tofarr@gmail.com>
  • Loading branch information
xingyaoww and tofarr authored Oct 18, 2024
1 parent 91308ba commit 126bf31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openhands/runtime/utils/runtime_templates/Dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ RUN \
if [ -d /openhands/code ]; then rm -rf /openhands/code; fi && \
mkdir -p /openhands/code/openhands && \
touch /openhands/code/openhands/__init__.py
COPY ./code/pyproject.toml ./code/poetry.lock /openhands/code
COPY ./code/pyproject.toml ./code/poetry.lock /openhands/code/

# Install all dependencies
WORKDIR /openhands/code
Expand Down Expand Up @@ -81,7 +81,7 @@ RUN \
# Copy Project source files
# ================================================================
RUN if [ -d /openhands/code/openhands ]; then rm -rf /openhands/code/openhands; fi
COPY ./code/pyproject.toml ./code/poetry.lock /openhands/code
COPY ./code/pyproject.toml ./code/poetry.lock /openhands/code/
COPY ./code/openhands /openhands/code/openhands

# Install extra dependencies if specified
Expand Down

0 comments on commit 126bf31

Please sign in to comment.