mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-15 02:17:26 +00:00
Merge pull request #156 from mdbenito/fix/docker-build
Fix docker build
This commit is contained in:
1 file changed
+5
-2
+5
-2
@@ -1,5 +1,6 @@
|
||||
# Use the official Python image for the base image.
|
||||
FROM python:3.11-slim
|
||||
SHELL ["/bin/bash", "-c"]
|
||||
|
||||
# Set environment variables to make Python print directly to the terminal and avoid .pyc files.
|
||||
ENV PYTHONUNBUFFERED 1
|
||||
@@ -10,6 +11,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
curl \
|
||||
build-essential \
|
||||
git \
|
||||
ssh \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Install pipx.
|
||||
@@ -26,12 +28,13 @@ RUN curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||
# Set the working directory
|
||||
WORKDIR /workspaces/serena
|
||||
|
||||
# Copy the pyproject.toml file into the image.
|
||||
# Copy required files into the image
|
||||
COPY pyproject.toml /workspaces/serena/
|
||||
COPY README.md /workspaces/serena/
|
||||
|
||||
# Create virtual environment and install dependencies
|
||||
RUN uv venv
|
||||
RUN source .venv/bin/activate
|
||||
RUN . .venv/bin/activate
|
||||
RUN uv pip install --all-extras -r pyproject.toml -e .
|
||||
ENV PATH="/workspaces/serena/.venv/bin:${PATH}"
|
||||
|
||||
|
||||
Reference in new issue
Block a user