Flask app Dockerization

    0

    1

    RF-Fahad-Islam

    A simple Dockerfile for dockerizing your flask apps

    Shortcut: flaskdocker

    Filename pattern: Dockerfile

    FROM python:3.10-alpine
    WORKDIR /app
    COPY . .
    ENV FLASK_APP=app.py
    ENV FLASK_RUN_HOST=0.0.0.0
    ENV GOOGLE_CLIENT_ID=535565541200-pjl74hijcitc536qb743qr6ml5ei5h69.apps.googleusercontent.com
    ENV GOOGLE_CLIENT_SECRET=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
    ENV SQLALCHEMY_DATABASE_URI=postgresql://postgres:Ba3wrluNowx895vkJfxJ@containers-us-west-142.railway.app:7876/railway
    COPY requirements.txt requirements.txt
    RUN pip install --upgrade pip
    RUN pip install -r requirements.txt
    EXPOSE 8000
    RUN gunicorn -w 4 app:app
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.