Spaces:
Runtime error
Runtime error
File size: 486 Bytes
8b77729 2656c08 8b77729 2656c08 8b77729 2656c08 8b77729 2656c08 8b77729 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
#!/usr/bin/env bash
cleanup() {
rm -f Dockerfile .dockerignore
}
trap cleanup ERR EXIT
./build_metadata_file.py
cat > .dockerignore << EOF
.git
datasets
EOF
cat > Dockerfile << EOF
FROM python
COPY requirements.txt tagging_app.py task_set.json language_set.json license_set.json metadata_927d44346b12fac66e97176608c5aa81843a9b9a.json ./
RUN pip install -r requirements.txt
RUN pip freeze
CMD ["streamlit", "run", "tagging_app.py"]
EOF
set -eEx
docker build -t dataset-tagger .
|