Fakultas Ilmu Komputer UI

Dockerfile 431 Bytes
Newer Older
Ryan Karyadiputera's avatar
test3    
Ryan Karyadiputera committed
1
FROM python:3.8
Ryan Karyadiputera's avatar
test  
Ryan Karyadiputera committed
2

Ryan Karyadiputera's avatar
test3    
Ryan Karyadiputera committed
3
ENV PYTHONUNBUFFERED 1
Ryan Karyadiputera's avatar
test  
Ryan Karyadiputera committed
4
5
6

ENV PYTHONDONTWRITEBYTECODE 1

Ryan Karyadiputera's avatar
test3    
Ryan Karyadiputera committed
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
ENV http_proxy=http://proxy.cs.ui.ac.id:8080/
ENV https_proxy=http://proxy.cs.ui.ac.id:8080/
ENV ftp_proxy=http://proxy.cs.ui.ac.id:8080/

RUN mkdir /app

WORKDIR /app

COPY requirements.txt /app/

RUN pip install -r requirements.txt 

COPY .env .env.production

COPY . /app/
Ryan Karyadiputera's avatar
test  
Ryan Karyadiputera committed
22

Ryan Karyadiputera's avatar
test3    
Ryan Karyadiputera committed
23
# RUN chmod +x docker-entrypoint.sh
Ryan Karyadiputera's avatar
test  
Ryan Karyadiputera committed
24

Ryan Karyadiputera's avatar
test3    
Ryan Karyadiputera committed
25
# ENTRYPOINT [ "/app/docker-entrypoint.sh" ]