diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..36ad192 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +FROM node:22 AS build-stage +WORKDIR /app +COPY package*.json ./ +RUN npm ci +COPY . . +RUN npm run build + +FROM busybox:1.35 +RUN adduser -D static +USER static +WORKDIR /home/static +COPY --from=build-stage /app/dist . +CMD ["busybox", "httpd", "-f", "-v", "-p", "3000"] diff --git a/package.json b/package.json index 626a095..f072832 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "scripts": { "dev": "vite", "build": "tsc -b && vite build", - "lint": "eslint . --ext js,jsx --report-unused-disable-directives --max-warnings 0", + "lint": "eslint .", "preview": "vite preview", "format": "prettier --write ./src", "test": "vitest"