File tree Expand file tree Collapse file tree 3 files changed +6
-9
lines changed
Expand file tree Collapse file tree 3 files changed +6
-9
lines changed Original file line number Diff line number Diff line change 3939 docker buildx build --cache-from=type=local,src=/tmp/.buildx-cache \
4040 --cache-to=type=local,dest=/tmp/.buildx-cache \
4141 --push \
42- -t ${{ secrets.DOCKERHUB_USERNAME}}/rhythm-up2 :latest .
42+ -t ${{ secrets.DOCKERHUB_USERNAME}}/rhythm-up :latest .
4343
4444 - name : Deploy to Server with Docker Compose
4545 uses : appleboy/ssh-action@master
Original file line number Diff line number Diff line change 11FROM node:20.16-alpine3.19 AS base
22
3- FROM base AS deps
3+ FROM base AS builder
44RUN apk add --no-cache libc6-compat
5- WORKDIR /usr/src/app
5+ WORKDIR /usr/src/app
66COPY package.json yarn.lock ./
77RUN yarn --frozen-lockfile --production;
8-
9- FROM base AS builder
10- WORKDIR /usr/src/app
11- COPY --from=deps /usr/src/app/node_modules ./node_modules
128COPY . .
139RUN yarn build
10+ RUN rm -rf ./.next/cache
1411
1512FROM base AS runner
1613WORKDIR /usr/src/app
Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ version: "3.8"
22
33services :
44 rhythm-up :
5- image : sjw7324/rhythm-up2 :latest
6- container_name : rhythm-up2
5+ image : sjw7324/rhythm-up :latest
6+ container_name : rhythm-up
77 ports :
88 - " 3001:3001"
99 environment :
You can’t perform that action at this time.
0 commit comments