Sign inSign up

uklft/flask

By uklft

Updated almost 9 years ago

Build on Alpine. Runs on all RaspberryPi's as its build on arm32v6.

Image
0

919

uklft/flask repository overview

Flask on Python 3

Build on Alpine. Runs on all RaspberryPi's as its build on arm32v6.

Usage

# To run a single app file
docker run --rm \
           -v $(pwd)/app.py:/app/app.py \
           -p 5000:5000 \
           uklft/flask python3 app.py

# To install dependencies
docker run --rm \
           -v $(pwd)/reqirements.txt:/app/requirements.txt \
           -p 5000:5000 \
           uklft/flask pip3 install requirements.txt

Dockerfile

FROM alpine

RUN apk update && \
    apk upgrade && \
    apk add python3 && \
    rm -rf /var/cache/apk/*

RUN /usr/bin/pip3 install Flask==0.12.2
RUN mkdir -vp /app/
WORKDIR /app/

Tag summary

Content type

Image

Digest

Size

21.8 MB

Last updated

almost 9 years ago

docker pull uklft/flask