william commited on
Commit
f79b301
·
1 Parent(s): a8dfd23

add supabase env

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -0
Dockerfile CHANGED
@@ -3,6 +3,9 @@
3
  # Adapted from https://github.com/vercel/next.js/blob/e60a1e747c3f521fc24dfd9ee2989e13afeb0a9b/examples/with-docker/Dockerfile
4
  # For more information, see https://nextjs.org/docs/pages/building-your-application/deploying#docker-image
5
 
 
 
 
6
  FROM node:18 AS base
7
 
8
  # Install dependencies only when needed
@@ -60,5 +63,7 @@ EXPOSE 4000
60
 
61
  ENV PORT 4000
62
  ENV HOSTNAME 0.0.0.0
 
 
63
 
64
  CMD ["node", "server.js"]
 
3
  # Adapted from https://github.com/vercel/next.js/blob/e60a1e747c3f521fc24dfd9ee2989e13afeb0a9b/examples/with-docker/Dockerfile
4
  # For more information, see https://nextjs.org/docs/pages/building-your-application/deploying#docker-image
5
 
6
+ ARG NEXT_PUBLIC_SUPABASE_URL
7
+ ARG NEXT_PUBLIC_SUPABASE_ANON_KEY
8
+
9
  FROM node:18 AS base
10
 
11
  # Install dependencies only when needed
 
63
 
64
  ENV PORT 4000
65
  ENV HOSTNAME 0.0.0.0
66
+ ENV NEXT_PUBLIC_SUPABASE_URL $NEXT_PUBLIC_SUPABASE_URL
67
+ ENV NEXT_PUBLIC_SUPABASE_ANON_KEY $NEXT_PUBLIC_SUPABASE_ANON_KEY
68
 
69
  CMD ["node", "server.js"]