diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 76f36b6..3020af6 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -15,7 +15,7 @@ jobs: - name: Setup node and install dependencies uses: actions/setup-node@v4 with: - node-version: "20.17.0" + node-version: "20.18.0" - name: Login to docker hub uses: docker/login-action@v3 with: diff --git a/Dockerfile b/Dockerfile index be3cc78..f1009e1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ # Base -FROM node:20.17.0-alpine AS base +FROM node:20.18.0-slim AS base WORKDIR /backoffice @@ -8,7 +8,7 @@ ARG VITE_BASE_URL ENV VITE_BASE_URL=${VITE_BASE_URL} -COPY package*.json / +COPY package*.json /backoffice/ RUN npm install @@ -30,10 +30,10 @@ FROM base AS production ENV NODE_ENV=production -WORKDIR /backoffice +RUN npm install -g serve RUN npm run build EXPOSE 4000 -CMD ["npm", "run", "preview"] \ No newline at end of file +CMD ["serve", "-s", "dist", "-p", "4000"] \ No newline at end of file diff --git a/package.json b/package.json index f91e3b7..b72defc 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "@dnd-kit/core": "^6.1.0", "@dnd-kit/sortable": "^8.0.0", "@hookform/resolvers": "^3.3.4", - "@nextui-org/react": "^2.3.6", + "@nextui-org/react": "2.4.8", "@tanstack/react-query": "^5.17.19", "@tiptap/extension-code-block-lowlight": "^2.2.0", "@tiptap/extension-heading": "^2.2.0", @@ -62,10 +62,10 @@ "eslint-plugin-react-hooks": "^4.6.0", "eslint-plugin-react-refresh": "^0.4.5", "postcss": "^8.4.38", - "sass": "^1.79.5", + "sass": "1.79.5", "tailwindcss": "^3.4.3", "typescript": "^5.2.2", - "vite": "^5.0.8", + "vite": "5.0.8", "vite-tsconfig-paths": "^4.3.1" } } \ No newline at end of file