forked from Netflix/metaflow-service
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
28 lines (20 loc) · 999 Bytes
/
Dockerfile
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
FROM golang:1.16.3
RUN go get -u github.com/pressly/goose/cmd/goose
RUN apt-get update && apt-get -y install python3.7 && apt-get -y install python3-pip && apt-get -y install libpq-dev
RUN pip3 install virtualenv && pip3 install requests
RUN virtualenv /opt/v_1_0_1 -p python3
RUN virtualenv /opt/latest -p python3
RUN /opt/v_1_0_1/bin/pip install https://github.com/Netflix/metaflow-service/archive/1.0.1.zip
ADD services/__init__.py /root/services/
ADD services/data/service_configs.py /root/services/
ADD services/data /root/services/data
ADD services/metadata_service /root/services/metadata_service
ADD services/utils /root/services/utils
ADD setup.py setup.cfg /root/
WORKDIR /root
RUN /opt/latest/bin/pip install .
# Migration Service
ADD services/migration_service /root/services/migration_service
RUN pip3 install -r /root/services/migration_service/requirements.txt
RUN chmod 777 /root/services/migration_service/run_script.py
CMD python3 services/migration_service/run_script.py