-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
41 lines (27 loc) · 988 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
31
32
33
34
35
36
37
38
39
40
41
FROM gcr.io/gcp-runtimes/ubuntu_18_0_4:latest as base
# FROM marketplace.gcr.io/google/ubuntu1804:latest as base
# FROM marketplace.gcr.io/google/debian9:latest as base
# FROM python:3.8-slim as base
LABEL maintainer="aronchick"
FROM base as builder
RUN apt-get -y update && apt-get -y install python3-all python3-pip git
RUN mkdir /install
WORKDIR /install
COPY requirements.txt /requirements.txt
ARG FIRSTCACHEBUST=1
RUN python3 -m pip install -U pip
RUN python3 -m pip install --no-cache-dir -r /requirements.txt
# RUN python3 -m pip install --no-cache-dir --prefix='/install' -r /requirements.txt
# FROM base
# COPY --from=builder /install /usr/local
# COPY /install /usr/local
ARG SECONDCACHEBUST=1
RUN mkdir /src
WORKDIR /src
COPY .parameters/ .parameters
COPY ./src/. /src/
COPY tests/schemas_for_test /src/schemas_for_test
COPY src/step_execution.py /src
COPY src/utils/utils.py /src/utils/utils.py
RUN touch /src/utils/__init__.py
ENTRYPOINT ["/src/entrypoint.sh"]