-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
30 lines (26 loc) · 932 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
29
30
FROM python:3.11-slim
# install ODBC Driver for SQL Server
RUN deps='curl gnupg gnupg2' && \
apt-get update && \
apt-get install -y $deps
RUN curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - && \
curl https://packages.microsoft.com/config/debian/11/prod.list > /etc/apt/sources.list.d/mssql-release.list && \
apt-get update && \
ACCEPT_EULA=Y apt-get install -y msodbcsql18
RUN pip install poetry
# clean up
RUN set -ex apt-get autoremove -y && \
apt-get clean -y && \
rm -rf /var/lib/apt/lists/*
# add credentials and install SML pipeline
WORKDIR .
COPY pyproject.toml poetry.lock /
RUN poetry config virtualenvs.create false
RUN poetry install --no-root --no-interaction
COPY floodpipeline /floodpipeline
COPY data_updates /data_updates
COPY tests /tests
COPY config /config
COPY "flood_pipeline.py" .
COPY "run_scenario.py" .
# ENTRYPOINT ["poetry", "run", "python", "-m", "flood_pipeline"]