Fakultas Ilmu Komputer UI

Dockerfile 411 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM python:latest

WORKDIR /opt/pplbackend
RUN mkdir -p /opt/pplbackend

ADD . /opt/pplbackend

ENV HTTP_PROXY="http://proxy.cs.ui.ac.id:8080"
ENV http_proxy="http://proxy.cs.ui.ac.id:8080"
ENV HTTPS_PROXY="http://proxy.cs.ui.ac.id:8080"
ENV https_proxy="http://proxy.cs.ui.ac.id:8080"

RUN\
 python3 -m pip install -r requirements.txt --no-cache-dir

RUN chmod +x /opt/pplbackend/docker_start.sh

EXPOSE 8000