Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 19 additions & 13 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,22 @@
FROM node:20.14.0

WORKDIR /app
FROM node:20.19.0 AS base
WORKDIR /app

COPY package*.json ./
FROM base AS deps
COPY package.json yarn.lock ./
RUN yarn install --frozen-lockfile

RUN yarn install

COPY . .

RUN yarn run build:staging

EXPOSE 3005

CMD ["yarn", "run", "start:staging"]
FROM base AS builder
COPY --from=deps /app/node_modules ./node_modules
COPY . .
RUN yarn run build

FROM base AS runner
ENV NODE_ENV=production
WORKDIR /app
COPY --from=builder /app/package.json ./package.json
COPY --from=builder /app/next.config.js ./next.config.js
COPY --from=builder /app/public ./public
COPY --from=builder /app/.next ./.next
COPY --from=builder /app/node_modules ./node_modules
EXPOSE 3005
CMD ["yarn", "run", "start:staging"]
5 changes: 5 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
services:
web:
build: .
ports:
- "3005:3005"
4 changes: 4 additions & 0 deletions src/components/ToolHeader/ToolHeader.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ $headerHeight: 46px;

.logo {
padding-top: 12px;

img {
object-fit: contain;
}
}

.Links {
Expand Down
2 changes: 1 addition & 1 deletion src/components/ToolHeader/ToolHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ const ToolHeader: FC<TToolHeader> = ({
<Link href="/" locale={locale} legacyBehavior>
<a target={homepageLinkTarget} className={styles.logo}>
<Image
src={'/assets/logos/keepsimpleNewYear.svg'}
src={'/assets/logos/keepsimple.svg'}
alt="keepsimple logo"
width={130.61}
height={25.87}
Expand Down
7 changes: 0 additions & 7 deletions src/layouts/UXCoreLayout/UXCoreLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import React, { FC, useEffect, useState } from 'react';
import { useRouter } from 'next/router';
import cn from 'classnames';
import dynamic from 'next/dynamic';
import Snowfall from 'react-snowfall';

import type { TRouter } from '@local-types/global';
import type { UXCoreLayoutProps } from './UXCoreLayout.types';
Expand Down Expand Up @@ -171,12 +170,6 @@ const UXCoreLayout: FC<UXCoreLayoutProps> = ({
{isCoreView && <Search biases={strapiBiases} />}
{isCoreView && (
<>
<Snowfall
snowflakeCount={250}
radius={[3, 3]}
color={'#ddf0fa'}
style={{ zIndex: 999 }}
/>
<CoreViewLayout biases={strapiBiases} />
{locale !== 'hy' && openPodcast && (
<UXCorePopup
Expand Down
Loading