Skip to content

Instantly share code, notes, and snippets.

@atodev
Created August 10, 2022 22:56
Show Gist options
  • Select an option

  • Save atodev/b239b81a9597b8c7d9ce5bf6c63708c8 to your computer and use it in GitHub Desktop.

Select an option

Save atodev/b239b81a9597b8c7d9ce5bf6c63708c8 to your computer and use it in GitHub Desktop.
[docker]
check file contents
-- make sure the container is running
docker ps
-- get the container no
docker exec -it 751fd3e49c68 /bin/bash
ls
---docker build
docker build -t ona3:latest .
---Dockerfile
------------------
FROM python:3
WORKDIR /app
COPY requirements.txt ./requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
EXPOSE 8501
COPY . .
ENTRYPOINT ["streamlit","run"]
CMD ["app.py"]
-------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment