From 5d812795830920b59008bf71e9d3e1ba31b2a7f8 Mon Sep 17 00:00:00 2001 From: MoonTestUse1 Date: Mon, 6 Jan 2025 10:01:46 +0600 Subject: [PATCH] Fix Dockerfile and TypeScript configuration --- frontend/Dockerfile | 5 ++++- frontend/tsconfig.json | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 53fe807..c0fe089 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -1,5 +1,5 @@ # Build stage -FROM node:18 as build +FROM node:18-alpine AS build WORKDIR /app @@ -12,6 +12,9 @@ RUN npm install # Copy source code COPY . . +# Install TypeScript and Vue compiler globally +RUN npm install -g typescript @vue/compiler-sfc + # Build the application RUN npm run build diff --git a/frontend/tsconfig.json b/frontend/tsconfig.json index 7035a3f..255c50c 100644 --- a/frontend/tsconfig.json +++ b/frontend/tsconfig.json @@ -13,8 +13,8 @@ "sourceMap": true, "baseUrl": ".", "types": [ - "webpack-env", - "node" + "node", + "vite/client" ], "paths": { "@/*": [