Skip to content

Commit

Permalink
fix: robyn cli dockerfile creation
Browse files Browse the repository at this point in the history
  • Loading branch information
sansyrox committed Jul 15, 2023
1 parent 4929b44 commit 8fbdc14
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
14 changes: 4 additions & 10 deletions robyn/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def index():
if __name__ == "__main__":
app.run()
app.start()
"""
)
Expand All @@ -54,20 +54,14 @@ def index():
WORKDIR /workspace
RUN apt-get update -y && \
apt-get install -y python 3.10
python3-pip
RUN pip install --no-cache-dir
--upgrade robyn
RUN apt-get update -y && apt-get install -y python 3.10 python3-pip
RUN pip install --no-cache-dir --upgrade robyn
COPY ./src/workspace/
EXPOSE 8080
CMD ["python3.10", "/workspace/foo/
app.py", "--log-level=DEBUG"]
CMD ["python3.10", "/workspace/foo/app.py", "--log-level=DEBUG"]
"""
)
elif docker == "N":
Expand Down
2 changes: 1 addition & 1 deletion robyn/authentication.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def get_token(cls, request: Request) -> Optional[str]:
if not authorization_header or not authorization_header.startswith("Bearer "):
return None

return authorization_header[7:]
return authorization_header[7:] # Remove the "Bearer " prefix

@classmethod
def set_token(cls, request: Request, token: str):
Expand Down

0 comments on commit 8fbdc14

Please sign in to comment.