Skip to content

Latest commit

 

History

History
44 lines (29 loc) · 1.41 KB

README.md

File metadata and controls

44 lines (29 loc) · 1.41 KB

Day-1 : Understanding AWS ECS / ECR better with Docker Container Build

Cloud Research

Hands On Today

  • Installed docker engine manually on my practice machine via SSH

  • Practice with different images / containers

    • $ docker pull
    • $ docker run
    • $ docker build
  • Took my github project from last month and made a microservice container out of it with below configuration

    • $ docker build --tag shrink .
    • $ docker run --env-file api_keys shrink
  • Dockerfile for container build

    FROM python:3.10.7-alpine
    WORKDIR /app
    COPY . .
    RUN pip3 install -r requirements.txt
    ENTRYPOINT ["python","shrink.py"]
    CMD ["python","shrink.py", "-h"]

Social Proof

I will just post it on Discord channel for today I guess ;)