Merge pull request #1750 from gtoxlili/fix-docker-logic

fix: Logical corrections & syntax errors
This commit is contained in:
Yifei Zhang 2023-05-25 16:36:45 +08:00 committed by GitHub
commit 46f0a256d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,9 +41,7 @@ COPY --from=builder /app/.next/server ./.next/server
EXPOSE 3000
CMD if [ -n "$PROXY_URL" ]; then \
if [ -z "$HOSTNAME" ]; then \
export HOSTNAME="127.0.0.1"; \
fi; \
export HOSTNAME="127.0.0.1"; \
protocol=$(echo $PROXY_URL | cut -d: -f1); \
host=$(echo $PROXY_URL | cut -d/ -f3 | cut -d: -f1); \
port=$(echo $PROXY_URL | cut -d: -f3); \