-
-
Save atodev/b239b81a9597b8c7d9ce5bf6c63708c8 to your computer and use it in GitHub Desktop.
[docker]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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