Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
kangjuhyup committed Oct 30, 2024
1 parent 4ca4e6c commit 15e75ec
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 21 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,13 @@ jobs:
echo "REDIS_HOST=${{ secrets.REDIS_HOST }}" >> .env
echo "REDIS_PORT=${{ secrets.REDIS_PORT }}" >> .env
echo "REDIS_PWD=${{ secrets.REDIS_PWD }}" >> .env
- name: Display .env file content
run: cat .env

- name: builder push
run: docker buildx build --platform linux/amd64,linux/arm64 -t ghcr.io/${{ github.repository }}/builder:latest --push .
- name: builder push
run: docker buildx build --platform linux/amd64,linux/arm64 -t ghcr.io/${{ github.repository }}/release:latest --push .
- name: docker build & push
run: docker buildx build --platform linux/amd64,linux/arm64 -t ghcr.io/${{ github.repository }}/service:latest --push .

Expand Down
21 changes: 2 additions & 19 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,35 +1,18 @@
# 빌드 스테이지
FROM node:20-bullseye-slim AS builder
FROM ghcr.io/kangjuhyup/invite-service/builder:latest AS builder

WORKDIR /usr/src/app

# 필요한 패키지 설치
RUN apt-get update && apt-get install -y \
python3 \
build-essential \
libc6-dev \
libvips-dev

# Yarn 버전 설정
RUN yarn set version 4.5.0

COPY . .

RUN yarn install
RUN yarn build

# 프로덕션 스테이지
FROM node:20-bullseye-slim AS production
FROM ghcr.io/kangjuhyup/invite-service/release:latest AS production

WORKDIR /usr/src/app

RUN apt-get update && apt-get install -y \
libvips-dev \
libc6-dev

# Yarn 버전 설정
RUN yarn set version 4.5.0

COPY --from=builder /usr/src/app/.yarn/ .yarn/
COPY --from=builder /usr/src/app/.yarnrc.yml .yarnrc.yml
COPY --from=builder /usr/src/app/package.json /usr/src/app/yarn.lock ./
Expand Down

0 comments on commit 15e75ec

Please sign in to comment.