-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (20 loc) · 955 Bytes
/
Dockerfile
File metadata and controls
24 lines (20 loc) · 955 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Base image
FROM python:3.6.8
# Image propietary
LABEL maintainer="Aurelio Vivas aa.vivas@uniandes.edu.co"
# Working directory inside the container
WORKDIR /usr/src/app
# Copy the project into the container current workdir
COPY . .
# For airflow install with pip
ENV AIRFLOW_HOME=$PWD/airflow
ENV SLUGIFY_USES_TEXT_UNIDECODE=yes
# Installing requirements
RUN pip install --no-cache-dir -r ./requirements.txt
# Informs Docker that the container listens on the specified network ports at runtime
# The EXPOSE instruction does not actually publish the port. It functions as a type of
# documentation between the person who builds the image and the person who runs the container,
# about which ports are intended to be published. To actually publish the port when running
# the container, use the -p flag on docker run to publish and map one or more ports, or the -P
# flag to publish all exposed ports and map them to to high-order ports.
EXPOSE 80