# Use an official Python runtime as a parent image
FROM python:3.7-alpine

ARG PROJECT_ROOT=/app

# Set the working directory to /app
WORKDIR /app

COPY requirements.txt $PROJECT_ROOT/requirements.txt
RUN pip install --no-cache-dir --upgrade pip && pip install --no-cache-dir -r requirements.txt

# Install packages
# RUN npm i yargs fs-extra auth0-deploy-cli auth0 glob --save --loglevel=error && mkdir /app/packages

# Copy app files
# COPY ["config.json", "index.js", "/app/"]
COPY . $PROJECT_ROOT/