feat: first commit

This commit is contained in:
ilhamtahir committed 2024-11-15 07:13:25 +08:00
commit 8a85cf5b78
64 files changed
+7832

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
# build stage
FROM node:lts-alpine as build-stage
WORKDIR /app
COPY package*.json ./
RUN npm config set registry https://registry.npm.taobao.org && npm install
COPY . .
RUN npm run build
# production stage
FROM nginx:stable-alpine as production-stage
COPY --from=build-stage /app/dist /usr/share/nginx/html
EXPOSE 8080
CMD ["nginx", "-g", "daemon off;"]