Skip to content

Commit 897ac3f

Browse files
Feat: Onboard New York Taxi Trips dataset (#381)
1 parent e4a6718 commit 897ac3f

17 files changed

+1985
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Copyright 2021 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# The base image for this build
16+
FROM python:3.8
17+
18+
# Allow statements and log messages to appear in Cloud logs
19+
ENV PYTHONUNBUFFERED True
20+
21+
# Copy the requirements file into the image
22+
COPY requirements.txt ./
23+
24+
# Install the packages specified in the requirements file
25+
RUN python3 -m pip install --no-cache-dir -r requirements.txt
26+
27+
# The WORKDIR instruction sets the working directory for any RUN, CMD,
28+
# ENTRYPOINT, COPY and ADD instructions that follow it in the Dockerfile.
29+
# If the WORKDIR doesn’t exist, it will be created even if it’s not used in
30+
# any subsequent Dockerfile instruction
31+
WORKDIR /custom
32+
33+
# Copy the specific data processing script/s in the image under /custom/*
34+
COPY ./csv_transform.py .
35+
36+
# Command to run the data processing script when the container is run
37+
CMD ["python3", "csv_transform.py"]

0 commit comments

Comments
 (0)