chore: i think the docker should now build
This commit is contained in:
@@ -9,14 +9,18 @@ const getSupabase = (config) => {
|
||||
|
||||
config = {
|
||||
supabaseConfig: {
|
||||
url: PUBLIC_SUPABASE_URL || '',
|
||||
anonKey: PUBLIC_SUPABASE_ANON_KEY || ''
|
||||
url: PUBLIC_SUPABASE_URL,
|
||||
anonKey: PUBLIC_SUPABASE_ANON_KEY
|
||||
}
|
||||
};
|
||||
|
||||
supabase = createClient(config.supabaseConfig.url, config.supabaseConfig.anonKey, {
|
||||
auth: { persistSession: false }
|
||||
});
|
||||
try {
|
||||
supabase = createClient(config.supabaseConfig.url, config.supabaseConfig.anonKey, {
|
||||
auth: { persistSession: false }
|
||||
});
|
||||
} catch (error) {
|
||||
console.error('Error starting supabase', error)
|
||||
}
|
||||
|
||||
return supabase;
|
||||
};
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
|
||||
|
||||
FROM node:18
|
||||
|
||||
WORKDIR "/app"
|
||||
@@ -7,14 +9,17 @@ RUN npm install -g pnpm
|
||||
COPY ./package.json ./
|
||||
COPY ./pnpm-lock.yaml ./
|
||||
|
||||
RUN pnpm install --frozen-lockfile
|
||||
RUN pnpm i --frozen-lockfile
|
||||
|
||||
COPY . /app/
|
||||
|
||||
CMD [ "ls", "-la" ]
|
||||
CMD [ "cd", "apps/dashboard" ]
|
||||
CMD [ "pnpm", "build" ]
|
||||
WORKDIR "/app/apps/dashboard"
|
||||
|
||||
RUN pnpm i --frozen-lockfile
|
||||
RUN pnpm build
|
||||
|
||||
EXPOSE 5000
|
||||
|
||||
CMD [ "pnpm", "start" ]
|
||||
CMD ["ls", "-la"]
|
||||
CMD ["pnpm", "start"]
|
||||
# CMD [ "sh", "-c", "ls -la && cd apps/dashboard && pnpm build && pnpm start" ]
|
||||
|
||||
Reference in New Issue
Block a user