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