Dockerfile
FROM python:3.4
RUN apt-get update -y
RUN apt-get install -y python-pip build-essential
COPY ./path-to-app /app
WORKDIR /app
RUN pip install --no-cache-dir -r requirements.txt
ENV FLASK_APP=app.py
ENV FLASK_ENV=development
docker-compose.yml
version: '3'
services:
app:
build:
context: ..
dockerfile: ./path-to/Dockerfile
ports:
- '5000:5000'
command: python app.py
requirements.txt
Flask==1.0.2