Skip to content

Commit d63b513

Browse files
authored
Merge pull request #68 from SeoJaeWan/develop
Deploy
2 parents a1c72f9 + 622a678 commit d63b513

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
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

Dockerfile

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
FROM node:20.16-alpine3.19 AS base
22

3-
FROM base AS deps
3+
FROM base AS builder
44
RUN apk add --no-cache libc6-compat
5-
WORKDIR /usr/src/app
5+
WORKDIR /usr/src/app
66
COPY package.json yarn.lock ./
77
RUN 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
128
COPY . .
139
RUN yarn build
10+
RUN rm -rf ./.next/cache
1411

1512
FROM base AS runner
1613
WORKDIR /usr/src/app

docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ version: "3.8"
22

33
services:
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:

0 commit comments

Comments
 (0)