-
Notifications
You must be signed in to change notification settings - Fork 1
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
feat(docker): add Dockerfile and .dockerignore for containerized setup #14
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
179a4c1
feat(docker): add Dockerfile and .dockerignore for containerized setup
domabyte e0dd9a6
chore(lint.yml): comment out the Docker test run step to skip tests d…
domabyte c19b9e5
feat(config): add .coderabbit.yaml for CodeRabbit configuration to en…
domabyte b54c27a
chore(lint.yml): update Docker Buildx action from v2 to v3 for improv…
domabyte File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.git | ||
__pycache__ | ||
.venv | ||
tests | ||
*.pyc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Use the official Python 3.10 image | ||
FROM python:3.10-slim | ||
|
||
# Set environment variables | ||
ENV POETRY_VERSION=1.1.13 | ||
ENV POETRY_HOME="/opt/poetry" | ||
ENV POETRY_VIRTUALENVS_CREATE=false | ||
|
||
# Install Poetry | ||
RUN apt-get update && apt-get install -y curl && \ | ||
curl -sSL https://install.python-poetry.org | python3 - && \ | ||
ln -s $POETRY_HOME/bin/poetry /usr/local/bin/poetry | ||
|
||
|
||
# Set the working directory | ||
WORKDIR /app | ||
|
||
# Copy the project files | ||
COPY . . | ||
|
||
# Install dependencies | ||
RUN poetry install --no-root | ||
|
||
# Expose the port the app runs on | ||
EXPOSE 8000 | ||
|
||
# Set the entry point | ||
CMD ["poetry", "run", "focusfeed"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replacing
self.auth
with a string breaks authentication flow.Currently,
self.auth
is assigned the value"Hello"
instead of anAuthenticator
-like object. As a result, calls toself.auth.login()
,self.auth.logout()
, andself.auth.perform_operations()
(lines 22, 24, 26) will fail, causing runtime errors. If your goal is to remove or mock the authenticator for testing, consider using a dummy or mock object that still provides the required methods instead of a raw string.Below is an example of a minimal mock object you could substitute:
📝 Committable suggestion