-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (28 loc) · 1.1 KB
/
Dockerfile
File metadata and controls
36 lines (28 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
FROM python:3.11.13-bookworm
LABEL authors="seyoung"
# 워킹디렉토리
WORKDIR /home/Jamiron_BE
COPY requirements.txt .
COPY .env .
RUN pip install --no-cache-dir --upgrade pip setuptools wheel \
&& pip install --no-cache-dir --prefer-binary -r requirements.txt \
&& pip install torch --index-url https://download.pytorch.org/whl/cpu \
&& pip install sentence-transformers==5.0.0 --no-deps\
&& pip install --no-cache-dir transformers==4.53.3 scikit-learn==1.6.1
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
default-libmysqlclient-dev \
libgl1 \
libglib2.0-0 \
fonts-nanum fonts-liberation \
unzip curl wget \
&& rm -rf /var/lib/apt/lists/*
# Google Chrome 설치
RUN wget -q https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb \
&& apt-get update \
&& apt-get install -y ./google-chrome-stable_current_amd64.deb || true \
&& apt-get install -fy \
&& rm google-chrome-stable_current_amd64.deb
RUN python -m nltk.downloader punkt punkt_tab
# 타임존 - 시간대를 한국시간대로 설정
ENV TZ=Asia/Seoul