forked from moj-analytical-services/airflow-de-intro-project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
40 lines (29 loc) · 875 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
# ARG DE_ECR
FROM python:3.9-slim
# There are a number of other source images available:
# FROM ${DE_ECR}/python:3.9-bullseye
# FROM ${DE_ECR}/python:3.8-bullseye
# FROM ${DE_ECR}/python3.7-slim
# FROM ${DE_ECR}/python3.7
# FROM ${DE_ECR}/datascience-notebook:3.1.13
# FROM ${DE_ECR}/oraclelinux8-python:3.8
# Update apt package lists
RUN apt-get update
# Install Git
RUN apt-get install -y git \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Verify the Git installation
RUN git --version
# Create a working directory to do stuff from
WORKDIR /etl
# COPY requirements.txt requirements.txt
# RUN pip install -r requirements.txt
# COPY scripts/ scripts/
# COPY data/ data/
# COPY docs/ docs/
# Ensures necessary permissions available to user in docker image
RUN chmod -R 777 .
COPY . .
RUN pip install -r requirements.txt
ENTRYPOINT python -u main.py