Here are my blog posts.
All About Docker and Docker compose
What is Docker? Docker is platform, where we can developing, shipping and running application. A Docker Container is standalone, lightweight and executable package that contain everything needed to run an application. How Docker Works? First we create Dockerfile FROM python:3.8-slim COPY requirements.txt . RUN pip install -r requirements.txt COPY . /opt/ml/code/ COPY src/serve /usr/local/bin/serve # Set permissions for the serve script RUN chmod +x /usr/local/bin/serve # Set the working directory WORKDIR /opt/ml/code # Expose the port FastAPI will run on EXPOSE 8080 # Start the FastAPI server using the serve script ENTRYPOINT ["/usr/local/bin/serve"] build a container image using docker buildx build -t myapp:latest . command. Here . (dot) means current directory. ...