Skip to content

Commit

Permalink
MATE-139 : [FEAT] 도커파일에 크롬 및 크롬드라이버 설치 (#121)
Browse files Browse the repository at this point in the history
* MATE-139 : [FEAT] 도커파일에 크롤링 관련 패키지 설치

* MATE-139 : [FEAT] 크롤링 환경 확인을 위해 임의로 deploy.yml 조정

* MATE-139 : [FEAT] deploy.yml 수정
  • Loading branch information
juchan204 authored Jan 2, 2025
1 parent a214c00 commit 61d4456
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
branches:
- develop


jobs:
deploy:
runs-on: ubuntu-latest
Expand Down
10 changes: 8 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
FROM eclipse-temurin:17-jdk-alpine

# Redis 설치
RUN apk add --no-cache redis
# Redis와 크롤링에 필요한 패키지 설치
RUN apk add --no-cache \
redis \
chromium \
chromium-chromedriver \
nss \
freetype \
harfbuzz

COPY ./build/libs/*SNAPSHOT.jar project.jar
ENTRYPOINT redis-server & java -jar project.jar
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
import com.example.mate.domain.goodsPost.dto.response.LocationInfo;
import com.example.mate.domain.goodsPost.entity.Category;
import com.example.mate.domain.goodsPost.entity.GoodsPost;
import com.example.mate.domain.goodsReview.entity.GoodsReview;
import com.example.mate.domain.goodsPost.entity.Status;
import com.example.mate.domain.goodsPost.repository.GoodsPostRepository;
import com.example.mate.domain.goodsReview.entity.GoodsReview;
import com.example.mate.domain.goodsReview.repository.GoodsReviewRepository;
import com.example.mate.domain.match.entity.Match;
import com.example.mate.domain.match.repository.MatchRepository;
Expand Down

0 comments on commit 61d4456

Please sign in to comment.