Skip to content

Commit

Permalink
feat: 241014 AWS 45차 배포
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeJE12 committed Oct 13, 2024
1 parent 5c60ecc commit f2f4fcd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
18 changes: 8 additions & 10 deletions Dockerfile.prod
Original file line number Diff line number Diff line change
Expand Up @@ -63,20 +63,18 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

RUN wget -qO - https://repo.mysql.com/RPM-GPG-KEY-mysql | apt-key add - \
&& echo "deb http://repo.mysql.com/apt/debian/ buster mysql-8.0" > /etc/apt/sources.list.d/mysql.list \
&& echo "deb http://repo.mysql.com/apt/debian/ buster mysql-tools" >> /etc/apt/sources.list.d/mysql.list \
&& echo "deb-src http://repo.mysql.com/apt/debian/ buster mysql-8.0" >> /etc/apt/sources.list.d/mysql.list

RUN apt-get update && apt-get install -y libmysqlclient-dev && apt-get clean && rm -rf /var/lib/apt/lists/*

# Set timezone
RUN ln -snf /usr/share/zoneinfo/Asia/Seoul /etc/localtime

# Add MySQL APT repository GPG key
RUN wget -qO - https://repo.mysql.com/RPM-GPG-KEY-mysql | gpg --dearmor -o /etc/apt/trusted.gpg.d/mysql.gpg

ENV DEBIAN_FRONTEND=noninteractive
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys B7B3B788A8D3785C && \
cd /tmp && \
wget https://dev.mysql.com/get/mysql-apt-config_0.8.20-1_all.deb && \
dpkg -i mysql-apt-config_0.8.20-1_all.deb && \
apt-get update && \
apt-get install -y libmysqlclient21 && \
rm mysql-apt-config_0.8.20-1_all.deb


# copy over the built wheels and install them
COPY --from=builder /usr/src/app/wheels /wheel
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,5 @@ clova-backend-pythonanywhere
20241014 01:47 41차 actions 테스트 : MySQL 레포지토리의 GPG 키 추가 코드 작성
20241014 01:49 42차 actions 테스트 : GPG 키 오류 해결 위한 코드 추가
20241014 01:51 43차 actions 테스트 : 우분투에서 GPG 키 직접 가져오는 코드 추가
20241014 01:53 44차 actions 테스트 : wheels 에서 wheel로 패키지명 수정
20241014 01:53 44차 actions 테스트 : wheels 에서 wheel로 패키지명 수정
20241014 01:58 45차 actions 테스트 : libmysqlclient-dev 설치 오류 해결 위해 임의로 저장소 추가

0 comments on commit f2f4fcd

Please sign in to comment.