Spaces:
Runtime error
Runtime error
william commited on
Commit ·
b6310af
1
Parent(s): 6ecef83
fix env
Browse files- Dockerfile +4 -4
Dockerfile
CHANGED
|
@@ -2,10 +2,6 @@
|
|
| 2 |
|
| 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
|
|
@@ -24,6 +20,10 @@ RUN \
|
|
| 24 |
|
| 25 |
# Rebuild the source code only when needed
|
| 26 |
FROM base AS builder
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
WORKDIR /app
|
| 28 |
COPY --from=deps --link /app/node_modules ./node_modules
|
| 29 |
COPY --link . .
|
|
|
|
| 2 |
|
| 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 |
FROM node:18 AS base
|
| 6 |
|
| 7 |
# Install dependencies only when needed
|
|
|
|
| 20 |
|
| 21 |
# Rebuild the source code only when needed
|
| 22 |
FROM base AS builder
|
| 23 |
+
|
| 24 |
+
ARG NEXT_PUBLIC_SUPABASE_URL
|
| 25 |
+
ARG NEXT_PUBLIC_SUPABASE_ANON_KEY
|
| 26 |
+
|
| 27 |
WORKDIR /app
|
| 28 |
COPY --from=deps --link /app/node_modules ./node_modules
|
| 29 |
COPY --link . .
|