-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added bigquery dockerfile Signed-off-by: pmahindrakar-oss <[email protected]> * removed opencv dependencies Signed-off-by: pmahindrakar-oss <[email protected]> --------- Signed-off-by: pmahindrakar-oss <[email protected]>
- Loading branch information
1 parent
e12536c
commit 95cbf07
Showing
3 changed files
with
40 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
FROM python:3.8-slim-buster | ||
LABEL org.opencontainers.image.source https://github.com/flyteorg/flytesnacks | ||
|
||
WORKDIR /root | ||
ENV VENV /opt/venv | ||
ENV LANG C.UTF-8 | ||
ENV LC_ALL C.UTF-8 | ||
ENV PYTHONPATH /root | ||
|
||
RUN apt-get update && apt-get install -y build-essential curl | ||
|
||
WORKDIR /opt | ||
RUN curl https://sdk.cloud.google.com > install.sh | ||
RUN bash /opt/install.sh --install-dir=/opt | ||
ENV PATH $PATH:/opt/google-cloud-sdk/bin | ||
WORKDIR /root | ||
|
||
ENV VENV /opt/venv | ||
# Virtual environment | ||
RUN python3 -m venv ${VENV} | ||
ENV PATH="${VENV}/bin:$PATH" | ||
|
||
# Install Python dependencies | ||
COPY bigquery/requirements.txt /root | ||
RUN pip install -r /root/requirements.txt | ||
|
||
# Copy the makefile targets to expose on the container. This makes it easier to register | ||
COPY in_container.mk /root/Makefile | ||
COPY bigquery/sandbox.config /root | ||
|
||
# Copy the actual code | ||
COPY bigquery/ /root/bigquery | ||
|
||
# This tag is supplied by the build script and will be used to determine the version | ||
# when registering tasks, workflows, and launch plans | ||
ARG tag | ||
ENV FLYTE_INTERNAL_IMAGE $tag |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters