diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..5a27aae --- /dev/null +++ b/.dockerignore @@ -0,0 +1,3 @@ +node_modules/ +dist/ +*.log \ No newline at end of file diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..2d1bf5f --- /dev/null +++ b/.env.example @@ -0,0 +1 @@ +VITE_API_BASE_URL= \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a28461e --- /dev/null +++ b/.gitignore @@ -0,0 +1,25 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +lerna-debug.log* + +node_modules +dist +dist-ssr +*.local + +# Editor directories and files +.vscode/* +!.vscode/extensions.json +.idea +.DS_Store +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? +.serena diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..ad6c369 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,16 @@ +FROM node:24-alpine AS build +WORKDIR /app + +COPY package*.json ./ +RUN npm install + +COPY . . +ARG VITE_API_BASE_URL="" +ENV VITE_API_BASE_URL=$VITE_API_BASE_URL +RUN npm run build + +FROM nginx:1.27-alpine +COPY --from=build /app/dist /usr/share/nginx/html +COPY nginx.conf /etc/nginx/conf.d/default.conf +EXPOSE 80 +CMD ["nginx", "-g", "daemon off;"] \ No newline at end of file diff --git a/README.md b/README.md index 2214e18..33895ab 100644 --- a/README.md +++ b/README.md @@ -1,93 +1,5 @@ -# mws.frontend.vue +# Vue 3 + TypeScript + Vite +This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 ` + +
+ + + +