Skip to content

Commit

Permalink
refactor: update Node.js version in Dockerfile and remove unused impo…
Browse files Browse the repository at this point in the history
…rts in input.tsx
  • Loading branch information
WangYihang committed Oct 24, 2024
1 parent d326236 commit e79a51f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
4 changes: 2 additions & 2 deletions web/platypus/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM node:20-alpine AS builder
FROM node:22.9-alpine AS builder
WORKDIR /app
COPY yarn.lock package.json ./
RUN yarn install
COPY . .
RUN yarn build

FROM node:20-alpine
FROM node:22.9-alpine
RUN apk update && apk upgrade
RUN apk add --no-cache dumb-init
WORKDIR /app
Expand Down
4 changes: 2 additions & 2 deletions web/platypus/src/components/ui/app-sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const items = [
{
title: "Machines",
url: "machines",
icon: Inbox,
icon: Calendar,
},
{
title: "Binaries",
Expand All @@ -41,7 +41,7 @@ const items = [
{
title: "Logs",
url: "logs",
icon: Inbox,
icon: Search,
},
{
title: "Settings",
Expand Down
8 changes: 2 additions & 6 deletions web/platypus/src/components/ui/input.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
import * as React from "react"

import React from "react"
import { cn } from "@/lib/utils"

export interface InputProps
extends React.InputHTMLAttributes<HTMLInputElement> {}

const Input = React.forwardRef<HTMLInputElement, InputProps>(
const Input = React.forwardRef<HTMLInputElement, React.InputHTMLAttributes<HTMLInputElement>>(
({ className, type, ...props }, ref) => {
return (
<input
Expand Down

0 comments on commit e79a51f

Please sign in to comment.