andrewrreed HF staff commited on
Commit
1017837
·
1 Parent(s): 83cd8b1
Files changed (2) hide show
  1. Dockerfile +1 -0
  2. docker-entrypoint-wrapper.sh +0 -1
Dockerfile CHANGED
@@ -12,6 +12,7 @@ RUN apk update && apk add --no-cache \
12
  # Set up environment variables
13
  ENV NEXTAUTH_SECRET=mysecret
14
  ENV SALT=mysalt
 
15
 
16
  # Copy and set up the wrapper script
17
  COPY docker-entrypoint-wrapper.sh /docker-entrypoint-wrapper.sh
 
12
  # Set up environment variables
13
  ENV NEXTAUTH_SECRET=mysecret
14
  ENV SALT=mysalt
15
+ ENV NODE_ENV=production
16
 
17
  # Copy and set up the wrapper script
18
  COPY docker-entrypoint-wrapper.sh /docker-entrypoint-wrapper.sh
docker-entrypoint-wrapper.sh CHANGED
@@ -58,7 +58,6 @@ export DATABASE_URL="postgresql://postgres:postgres@localhost:5432/node"
58
  export HOSTNAME="0.0.0.0"
59
  export HOST="0.0.0.0"
60
  export PORT=3000
61
- export NEXT_PUBLIC_BASE_URL="https://${SPACE_ID}.hf.space"
62
 
63
  # Start Next.js in the background
64
  ./web/entrypoint.sh node ./web/server.js \
 
58
  export HOSTNAME="0.0.0.0"
59
  export HOST="0.0.0.0"
60
  export PORT=3000
 
61
 
62
  # Start Next.js in the background
63
  ./web/entrypoint.sh node ./web/server.js \