Add Dockerfile (#33)
* add Dockerfile * update Readme.md * Fixed : Docker log file * Update vite.config.tsmain
parent
e9db25a970
commit
6646695849
@ -0,0 +1,6 @@
|
||||
node_modules
|
||||
Dockerfile
|
||||
.git
|
||||
.husky
|
||||
.github
|
||||
.vscode
|
@ -0,0 +1,19 @@
|
||||
FROM node:lts
|
||||
|
||||
# copy resource
|
||||
RUN mkdir /app
|
||||
COPY ./ /app
|
||||
WORKDIR /app
|
||||
|
||||
# build
|
||||
RUN npm install pnpm -g
|
||||
RUN pnpm bootstrap
|
||||
WORKDIR /app/service
|
||||
RUN pnpm install
|
||||
WORKDIR /app
|
||||
|
||||
EXPOSE 1002
|
||||
EXPOSE 3002
|
||||
|
||||
CMD ["/bin/bash","./start.sh"]
|
||||
|
Loading…
Reference in New Issue