mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-09-27 13:46:37 +08:00
Install humctl rather than importing from bin
This commit is contained in:
parent
4781861a92
commit
212844d5dc
13
Dockerfile
13
Dockerfile
@ -28,7 +28,7 @@ RUN yarn build
|
|||||||
FROM base AS runner
|
FROM base AS runner
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
RUN apk add proxychains-ng
|
RUN apk add --no-cache proxychains-ng curl tar
|
||||||
|
|
||||||
ENV PROXY_URL=""
|
ENV PROXY_URL=""
|
||||||
ENV OPENAI_API_KEY=""
|
ENV OPENAI_API_KEY=""
|
||||||
@ -40,12 +40,17 @@ COPY --from=builder /app/public ./public
|
|||||||
COPY --from=builder /app/.next/standalone ./
|
COPY --from=builder /app/.next/standalone ./
|
||||||
COPY --from=builder /app/.next/static ./.next/static
|
COPY --from=builder /app/.next/static ./.next/static
|
||||||
COPY --from=builder /app/.next/server ./.next/server
|
COPY --from=builder /app/.next/server ./.next/server
|
||||||
COPY --from=builder /app/bin /app/bin
|
|
||||||
RUN chmod +x /app/bin/*
|
|
||||||
|
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
|
||||||
CMD if [ -n "$PROXY_URL" ]; then \
|
CMD echo "Installing humctl..." && \
|
||||||
|
HUMCTL_ARCH=$(uname -m) && \
|
||||||
|
if [ "$HUMCTL_ARCH" = "x86_64" ]; then HUMCTL_ARCH="amd64"; fi && \
|
||||||
|
curl -L "https://github.com/humanitec/cli/releases/latest/download/humctl_Linux_${HUMCTL_ARCH}.tar.gz" | tar xz -C /usr/local/bin && \
|
||||||
|
chmod +x /usr/local/bin/humctl && \
|
||||||
|
echo "humctl installed successfully." && \
|
||||||
|
\
|
||||||
|
if [ -n "$PROXY_URL" ]; then \
|
||||||
export HOSTNAME="0.0.0.0"; \
|
export HOSTNAME="0.0.0.0"; \
|
||||||
protocol=$(echo $PROXY_URL | cut -d: -f1); \
|
protocol=$(echo $PROXY_URL | cut -d: -f1); \
|
||||||
host=$(echo $PROXY_URL | cut -d/ -f3 | cut -d: -f1); \
|
host=$(echo $PROXY_URL | cut -d/ -f3 | cut -d: -f1); \
|
||||||
|
Loading…
Reference in New Issue
Block a user