Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions dockerfiles/py.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ FROM python:3.11-bullseye as build

# Install protobuf compiler
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive \
&& DEBIAN_FRONTEND=noninteractive \
apt-get install --no-install-recommends --assume-yes \
protobuf-compiler=3.12.4* libprotobuf-dev=3.12.4*
protobuf-compiler=3.12.4* libprotobuf-dev=3.12.4*

# Get go compiler
ARG PLATFORM=amd64
Expand Down Expand Up @@ -57,5 +57,7 @@ COPY --from=build /app/${REPO_DIR_OR_PLACEHOLDER} /app/${REPO_DIR_OR_PLACEHOLDER
COPY --from=build /app/uv.lock /app/pyproject.toml /app/
COPY --from=build /bin/uv /bin/uvx /bin/

ENV UV_NO_SYNC=1 UV_FROZEN=1 UV_OFFLINE=1

# Use entrypoint instead of command to "bake" the default command options
ENTRYPOINT ["/app/temporal-features", "run", "--lang", "py", "--prepared-dir", "prepared"]
5 changes: 2 additions & 3 deletions sdkbuild/python.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@ package sdkbuild
import (
"context"
"fmt"
"io"
"os"
"os/exec"
"path/filepath"
"runtime"
"strings"

"io"
)

// BuildPythonProgramOptions are options for BuildPythonProgram.
Expand Down Expand Up @@ -180,7 +179,7 @@ func PythonProgramFromDir(dir string) (*PythonProgram, error) {
// Dir is the directory to run in.
func (p *PythonProgram) Dir() string { return p.dir }

// NewCommand makes a new Poetry command. The first argument needs to be the
// NewCommand makes a new uv command. The first argument needs to be the
// name of the module.
func (p *PythonProgram) NewCommand(ctx context.Context, args ...string) (*exec.Cmd, error) {
args = append([]string{"run", "python", "-m"}, args...)
Expand Down
Loading