From 177d8b2472744e44c62fa7b48e1a123f280601fd Mon Sep 17 00:00:00 2001 From: coward Date: Tue, 4 Jun 2024 10:45:06 +0800 Subject: [PATCH] :art: --- web-src/.dockerignore | 21 --------------------- web-src/Dockerfile | 20 -------------------- 2 files changed, 41 deletions(-) delete mode 100644 web-src/.dockerignore delete mode 100644 web-src/Dockerfile diff --git a/web-src/.dockerignore b/web-src/.dockerignore deleted file mode 100644 index 0376edd..0000000 --- a/web-src/.dockerignore +++ /dev/null @@ -1,21 +0,0 @@ -node_modules -.DS_Store -dist -dist-ssr -*.local -.eslintcache -report.html - -yarn.lock -npm-debug.log* -.pnpm-error.log* -.pnpm-debug.log -tests/**/coverage/ - -# Editor directories and files -.idea -*.suo -*.ntvs* -*.njsproj -*.sln -tsconfig.tsbuildinfo diff --git a/web-src/Dockerfile b/web-src/Dockerfile deleted file mode 100644 index 8e1f235..0000000 --- a/web-src/Dockerfile +++ /dev/null @@ -1,20 +0,0 @@ -FROM node:18-alpine as build-stage - -WORKDIR /app -RUN corepack enable -RUN corepack prepare pnpm@8.6.10 --activate - -RUN npm config set registry https://registry.npmmirror.com - -COPY .npmrc package.json pnpm-lock.yaml ./ -RUN pnpm install --frozen-lockfile - -COPY . . -RUN pnpm build - -FROM nginx:stable-alpine as production-stage - -COPY --from=build-stage /app/dist /usr/share/nginx/html -EXPOSE 80 - -CMD ["nginx", "-g", "daemon off;"] \ No newline at end of file