Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build WHL file #40

Closed
wants to merge 4 commits into from
Closed
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
5 changes: 1 addition & 4 deletions Dockerfile-cpu
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,8 @@ COPY ./deployment/append_memory_setting.sh /home/model-server/append_memory_sett
RUN chmod +x /home/model-server/append_memory_setting.sh \
&& /home/model-server/append_memory_setting.sh

COPY start ./

WORKDIR /home/model-server
COPY dist/sam_serve-1.0.0-py3-none-any.whl /home/model-server
RUN pip install /home/model-server/sam_serve-1.0.0-py3-none-any.whl
COPY start ./
ENV TEMP=/home/model-server/tmp
ENV ENABLE_TORCH_PROFILER=FALSE

Expand Down
8 changes: 3 additions & 5 deletions Dockerfile-gpu
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM pytorch/torchserve:0.8.2-gpu
FROM pytorch/torchserve:latest-gpu

USER root

Expand All @@ -18,9 +18,7 @@ RUN chmod +x /home/model-server/append_memory_setting.sh \
COPY start ./

WORKDIR /home/model-server
COPY dist/sam_serve-1.0.0-py3-none-any.whl /home/model-server
RUN pip install /home/model-server/sam_serve-1.0.0-py3-none-any.whl
ENV TEMP=/home/model-server/volume/tmp
ENV ENABLE_TORCH_PROFILER=FALSE
ENV ENABLE_TORCH_PROFILER=TRUE

CMD ./start
CMD ./start
Binary file removed dist/sam_serve-1.0.0-py3-none-any.whl
Binary file not shown.
Loading