Skip to content

Dockerfile, CMD, gunicorn app:app #12

@FolkertMeeuw

Description

@FolkertMeeuw

I've to change the requirements.txt and add

gunicorn==21.2.0

I've to change the Dockerfile lines

WORKDIR /app

into

WORKDIR .

and

CMD gunicorn 'venv.lib.python3.9.site-packages.gunicorn.http.wsgi' --bind=0.0.0.0:25126

into

CMD gunicorn app:app --bind=0.0.0.0:25126

macOS:
Sonoma Version 14.3.1 (23D60)

docker desktop:
Version 4.25.0 (126437)
Engine: 24.0.6
Compose: v2.23.0-desktop.1
Credential Helper: v0.7.0
Kubernetes: v1.28.2

Pycharm:
PyCharm 2023.2 (Community Edition)
Build #PC-232.8660.197, built on July 26, 2023
Runtime version: 17.0.7+7-b1000.6 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 14.3.1
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 8
Metal Rendering is ON
Registry:
ide.experimental.ui=true

Non-Bundled Plugins:
gdscript (0.35.0)
com.jetbrains.plugins.ini4idea (232.8660.205)
com.jetbrains.nim (1.5.3-223)

Python:
Python 3.9.6

Pip:
pip 24.0 from /Users/folkertmeeuw/PycharmProjects/python-docker-dev/venv/lib/python3.9/site-packages/pip (python 3.9)

Dockerfile.txt
requirements.txt
python-docker-dev.log
python-docker-dev.2.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions