-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
20 lines (20 loc) · 976 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Pulled June 16, 2021
FROM --platform=linux/amd64 python:3.8@sha256:c7706b8d1b1e540b9dd42ac537498d7f3138e4b8b89fb890b2ee4d2c0bccc8ea
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" &&\
unzip awscliv2.zip && rm awscliv2.zip &&\
./aws/install && aws --version
RUN pip install --upgrade pip
WORKDIR /srv
COPY stride-db-latest-commit.txt ./
RUN cat stride-db-latest-commit.txt &&\
pip install -r https://raw.githubusercontent.com/hasadna/open-bus-stride-db/main/requirements.txt &&\
git clone https://github.com/hasadna/open-bus-stride-db.git &&\
pip install -e open-bus-stride-db
COPY requirements.txt ./open-bus-stride-etl/requirements.txt
RUN pip install -r open-bus-stride-etl/requirements.txt
COPY setup.py ./open-bus-stride-etl/setup.py
COPY open_bus_stride_etl ./open-bus-stride-etl/open_bus_stride_etl
RUN pip install -e open-bus-stride-etl
ENV PYTHONUNBUFFERED=1
ENTRYPOINT ["open-bus-stride-etl"]
CMD ["--help"]