-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feature/puntos-recogidas-map
- Loading branch information
Showing
2 changed files
with
14 additions
and
4,539 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,31 @@ | ||
FROM node:18-alpine | ||
ARG CACHE_BURST=1 | ||
|
||
# Add build arguments for Supabase | ||
ARG NEXT_PUBLIC_SUPABASE_URL | ||
ARG NEXT_PUBLIC_SUPABASE_ANON_KEY | ||
|
||
# Set environment variables | ||
ENV NODE_ENV="production" \ | ||
ENV NODE_ENV="development" \ | ||
NEXT_TELEMETRY_DISABLED=1 \ | ||
NEXT_PUBLIC_SUPABASE_URL=$NEXT_PUBLIC_SUPABASE_URL \ | ||
NEXT_PUBLIC_SUPABASE_ANON_KEY=$NEXT_PUBLIC_SUPABASE_ANON_KEY | ||
|
||
WORKDIR /app | ||
|
||
COPY ./package.json ./yarn.lock ./ | ||
COPY package*.json ./ | ||
|
||
RUN yarn --frozen-lockfile --production=false | ||
# Install ALL dependencies | ||
RUN npm install | ||
|
||
COPY ./ ./ | ||
COPY . . | ||
|
||
RUN yarn build | ||
RUN npm run build | ||
|
||
# Switch to production after build | ||
ENV NODE_ENV="production" | ||
|
||
# Clean up development dependencies | ||
RUN npm prune --production | ||
|
||
EXPOSE 3000 | ||
CMD ["yarn", "start"] | ||
|
||
CMD ["npm", "start"] |
Oops, something went wrong.