From f9cc96ee1ab4e5da9bc49292a569d6b1d1814e04 Mon Sep 17 00:00:00 2001 From: Dinmukhamed Mailibay <47117969+dinmukhamedm@users.noreply.github.com> Date: Thu, 17 Oct 2024 23:09:26 -0700 Subject: [PATCH] update node + minor fix build (#57) --- frontend/Dockerfile | 12 ++++++------ frontend/README.md | 2 +- frontend/components/landing/landing.tsx | 2 +- frontend/package.json | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 191c7438..c0b155c7 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -1,4 +1,4 @@ -FROM node:18-alpine AS base +FROM node:22-alpine AS base # Install dependencies only when needed FROM base AS deps @@ -20,7 +20,7 @@ COPY . . # Next.js collects completely anonymous telemetry data about general usage. # Learn more here: https://nextjs.org/telemetry # Uncomment the following line in case you want to disable telemetry during the build. -ENV NEXT_TELEMETRY_DISABLED 1 +ENV NEXT_TELEMETRY_DISABLED=1 RUN npm run build @@ -28,9 +28,9 @@ RUN npm run build FROM base AS runner WORKDIR /app -ENV NODE_ENV production +ENV NODE_ENV=production # Uncomment the following line in case you want to disable telemetry during runtime. -ENV NEXT_TELEMETRY_DISABLED 1 +ENV NEXT_TELEMETRY_DISABLED=1 RUN addgroup --system --gid 1001 nodejs RUN adduser --system --uid 1001 nextjs @@ -50,8 +50,8 @@ USER nextjs EXPOSE 3000 -ENV PORT 3000 +ENV PORT=3000 # set hostname to localhost -ENV HOSTNAME "0.0.0.0" +ENV HOSTNAME="0.0.0.0" CMD ["node", "server.js"] \ No newline at end of file diff --git a/frontend/README.md b/frontend/README.md index ca48b3fb..ecb2a991 100644 --- a/frontend/README.md +++ b/frontend/README.md @@ -1,4 +1,4 @@ -# Hummingbird +# Frontend ## Setup instructions diff --git a/frontend/components/landing/landing.tsx b/frontend/components/landing/landing.tsx index 5f5ca52a..7b93aeb3 100644 --- a/frontend/components/landing/landing.tsx +++ b/frontend/components/landing/landing.tsx @@ -5,7 +5,7 @@ import yc from '@/assets/landing/yc.svg'; import traces from '@/assets/landing/traces.png'; import { ArrowRight, ArrowUpRight, Github } from 'lucide-react'; import smallTrace from '@/assets/landing/small-trace.png'; -import moa from '@/assets/landing/moa.png'; +import moa from '@/assets/landing/MoA.png'; import palantir from '@/assets/landing/palantir.svg'; import amazon from '@/assets/landing/amazon.svg'; import github from '@/assets/landing/github-mark-white.svg'; diff --git a/frontend/package.json b/frontend/package.json index 544cc4ea..c068050c 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,5 +1,5 @@ { - "name": "hummingbird", + "name": "frontend", "version": "0.0.1", "private": true, "scripts": {