Skip to content

Commit b85d253

Browse files
authored
Revert "Fix entrypoint for published servers (#313)" (#318)
This reverts commit 1fd1d28.
1 parent 1fd1d28 commit b85d253

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "truss"
3-
version = "0.4.6"
3+
version = "0.4.6dev10"
44
description = "A seamless bridge from model development to model delivery"
55
license = "MIT"
66
readme = "README.md"

truss/templates/server.Dockerfile.jinja

+1-3
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,9 @@ COPY ./{{config.data_dir}} /app/data
6464
ENV HASH_TRUSS {{truss_hash}}
6565
ENV CONTROL_SERVER_PORT 8080
6666
ENV INFERENCE_SERVER_PORT 8090
67-
ENV SERVER_START_CMD={{"/control/.env/bin/python3 /control/control/server.py"}}
6867
ENTRYPOINT ["/control/.env/bin/python3", "/control/control/server.py"]
6968
{%- else %}
7069
ENV INFERENCE_SERVER_PORT 8080
71-
ENV SERVER_START_CMD="{{(config.base_image.python_executable_path or "python3") ~ " /app/inference_server.py"}}"
72-
ENTRYPOINT ["{{config.base_image.python_executable_path or "python3"}}", "/app/inference_server.py"]
70+
ENTRYPOINT $PYTHON_EXECUTABLE /app/inference_server.py
7371
{%- endif %}
7472
{% endblock %}

truss/test_data/server.Dockerfile

+1-2
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,4 @@ COPY ./data /app/data
4848
COPY ./packages /packages
4949

5050
ENV INFERENCE_SERVER_PORT 8080
51-
ENV SERVER_START_CMD="/usr/local/bin/python3 /app/inference_server.py"
52-
ENTRYPOINT ["/usr/local/bin/python3", "/app/inference_server.py"]
51+
ENTRYPOINT $PYTHON_EXECUTABLE /app/inference_server.py

0 commit comments

Comments
 (0)