Skip to content

Commit 7e88ca0

Browse files
committed
dockerfile 환경변수 처리
1 parent 725f0d7 commit 7e88ca0

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

Dockerfile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,13 @@ LABEL maintainer="rhj0830@gmail.com"
55
COPY . /app/server
66

77
WORKDIR /app/server
8-
9-
RUN pip3 install -r requirements.txt
8+
# 환경변수 세팅 및 python module 설치
9+
RUN export ES_IP='http://localhost' \
10+
&& export ES_PORT=9200 \
11+
&& export SPRING_IP='http://localhost' \
12+
&& export SPRING_PORT=8080 \
13+
&& export REDIS_IP='redis://localhost' \
14+
&& export REDIS_PORT=6379 \
15+
&& pip3 install -r requirements.txt
1016

1117
ENTRYPOINT ["python", "Server.py"]

0 commit comments

Comments
 (0)