chore: fix docker build problem

pull/90/head
moonrailgun 2 years ago
parent f26a42356f
commit af9638b660

@ -28,14 +28,14 @@ RUN pnpm install
COPY ./client ./client
RUN pnpm install
# Copy source
# Copy all source
COPY . .
RUN pnpm install
# Build and cleanup (client and server)
ENV NODE_ENV=production
ENV VERSION=$VERSION
RUN pnpm run build
RUN pnpm build
# web static service port
EXPOSE 3000

@ -7,7 +7,7 @@
"dev:node": "cross-env NODE_ENV=development nodemon",
"dev:remix": "remix watch",
"start": "cross-env NODE_ENV=production node ./dist/admin/server.js",
"build": "rm -r ./dist && remix build && tsc --noEmit false && mv ./build ./dist/admin/",
"build": "rm -rf ./dist && remix build && tsc --noEmit false && mv ./build ./dist/admin/",
"typecheck": "tsc -b"
},
"dependencies": {

Loading…
Cancel
Save