Skip to content
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
# Specify base image.

FROM python:3.9

# Set working directory.

# Expose port 8000 for your FastAPI server.
WORKDIR /AnshulGoyal-jtu-22-assignment

EXPOSE 8000

# Install Python requirements using Pip.
COPY ./requirements.txt /AnshulGoyal-jtu-22-assignment/requirements.txt

# Copy your codebase into the Docker container.
RUN pip install -r requirements.txt
COPY . /AnshulGoyal-jtu-22-assignment

# Run FastAPI server on the port exposed above.
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--reload"]
Binary file added __pycache__/main.cpython-38.pyc
Binary file not shown.
Binary file added __pycache__/utils.cpython-38.pyc
Binary file not shown.
4 changes: 2 additions & 2 deletions utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
def get_personal_message() -> str:
# Modify the personal message as desired.
name: str = "___"
return f"Hello, my name's {name}."
name: str = "Anshul Goyal"
return f"Hello, my name's {name}. I hope you are good"