Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dockerfile fastapi gunicorn uvicorn #2

Merged
merged 8 commits into from
Nov 29, 2023

Conversation

ruokolt
Copy link
Contributor

@ruokolt ruokolt commented Nov 29, 2023

Add a working Dockerfile for the gunicorn + uvicorn + FastAPI app.

Dockerfile Outdated

# Copy application contents
COPY . .
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we really want to copy over everything? or should this just be the app folder?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just noticed the same thing after pushing, I'll check it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it should be

COPY ./app .
COPY ./entrypoint.sh .

We need the entrypoint as well.

@ruokolt ruokolt merged commit 8409f7c into main Nov 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants