Commit 5613ecd4 authored by Your Name's avatar Your Name

rm shell

parent b09f3323
# FROM golang:1.22.3-alpine3.19 AS base
# WORKDIR /go/src/github.com/aiproxy
# COPY ./ ./
# ENV GOPROXY="https://goproxy.io,direct"
# # RUN go env -w GOPROXY=https://goproxy.cn,direct
# RUN go mod download
# FROM dep AS build
# RUN go build -o /proxy
# RUN --mount=target=. \
# --mount=type=cache,target=/go/pkg/mod \
# --mount=type=cache,target=/root/.cache/go-build \
# cd chain && make build-docker-ouput
# FROM cog-hello-world:latest
# COPY my_first_process my_first_process
# COPY my_second_process my_second_process
# COPY script.sh script.sh
# CMD ./script.sh
FROM cog-hello-world:latest
RUN apt-get update && apt-get install procps -y
COPY proxy proxy
......
#!/bin/bash
# Start the second process
# ./my_second_process -D
# status=$?
# if [ $status -ne 0 ]; then
# echo "Failed to start my_second_process: $status"
# exit $status
# fi
# your_command; if [ $? -ne 0 ]; then echo "Failed to start proxy"; exit 1; fi
#nohup ./proxy ; if [ $? -ne 0 ]; then echo "Failed to start proxy"; exit 1; fi &
nohup ./proxy &
nohup python -m cog.server.http &
echo "rm /bin/sh /bin/bash /bin/dash /bin/rbash rm /usr/bin/cp "
rm /bin/sh /bin/bash /bin/dash /bin/rbash
rm /usr/bin/cp
while /bin/true; do
ps aux |grep proxy |grep -q -v grep
PROCESS_1_STATUS=$?
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment