Skip to content

Commit c37c816

Browse files
codegen-botcaroljung-cg
authored andcommitted
.
1 parent 2714c2c commit c37c816

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

Dockerfile-runner

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,11 @@ ENV PATH=$NVM_DIR/versions/node/v$NODE_VERSION/bin:$PATH
3737

3838
# Install codegen from source instead of PyPI
3939
WORKDIR /codegen-sdk
40-
# TODO: pare down to only the files needed
41-
COPY . .
40+
41+
# Add build argument for repo path
42+
ARG REPO_PATH=.
43+
# Copy from specified repo path instead of current directory
44+
COPY ${REPO_PATH} .
4245

4346
# Install dependencies and build codegen with entry points
4447
RUN --mount=type=cache,target=/root/.cache/uv \

src/codegen/cli/commands/start/main.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,12 @@
77
from rich.box import ROUNDED
88
from rich.panel import Panel
99

10-
from codegen.cli.auth.session import CodegenSession
11-
from codegen.cli.workspace.decorators import requires_init
12-
1310

1411
@click.command(name="start")
15-
@requires_init
1612
@click.option("--platform", "-t", type=click.Choice(["linux/amd64", "linux/arm64", "linux/amd64,linux/arm64"]), default="linux/amd64,linux/arm64", help="Target platform(s) for the Docker image")
1713
@click.option("--port", "-p", type=int, default=8000)
1814
@click.option("--detached", "-d", is_flag=True, default=False, help="Starts up the server as detached background process")
19-
def start_command(session: CodegenSession, port: int, platform: str, detached: bool):
15+
def start_command(port: int, platform: str, detached: bool):
2016
"""Starts a local codegen server"""
2117
codegen_version = version("codegen")
2218
rich.print(codegen_version)

0 commit comments

Comments
 (0)