Skip to content

Commit

Permalink
feat(base): 开源绝大部分站点
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangsx committed Sep 10, 2023
1 parent d75c848 commit 4628db7
Show file tree
Hide file tree
Showing 48 changed files with 9,869 additions and 1,447 deletions.
8 changes: 8 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"printWidth": 80,
"singleQuote": true,
"trailingComma": "all",
"proseWrap": "never",
"overrides": [{ "files": ".prettierrc", "options": { "parser": "json" } }],
"plugins": ["prettier-plugin-organize-imports", "prettier-plugin-packagejson"]
}
11 changes: 6 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@ RUN npm i --registry=https://registry.npm.taobao.org

COPY --chown=pptruser . /usr/src/build

RUN npm run build
RUN npm run build && \
find ./dist -name "*.js" -exec npx terser {} -o {} \; && \
mkdir -p /usr/src/app && \
cp -r ./dist/* /usr/src/app/ && \
cp -r ./node_modules /usr/src/app/ && \
rm -rf /usr/src/build

RUN mkdir /usr/src/app/
RUN cp ./dist/* /usr/src/app/ -r
RUN cp ./node_modules /usr/src/app/ -r
RUN rm /usr/src/build -rf
WORKDIR /usr/src/app

VOLUME [ "/usr/src/app/run" ]
Expand Down
Loading

0 comments on commit 4628db7

Please sign in to comment.