Skip to content

Commit

Permalink
fix dockerfile, change node version and nextui version
Browse files Browse the repository at this point in the history
  • Loading branch information
akmatoff committed Oct 12, 2024
1 parent 6db60a8 commit ca34ca0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# Base

FROM node:20.17.0-alpine AS base
FROM node:20.18.0-slim AS base

WORKDIR /backoffice

ARG VITE_BASE_URL

ENV VITE_BASE_URL=${VITE_BASE_URL}

COPY package*.json /
COPY package*.json /backoffice/

RUN npm install

Expand All @@ -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"]
CMD ["serve", "-s", "dist", "-p", "4000"]
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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"
}
}

0 comments on commit ca34ca0

Please sign in to comment.