2023-09-29 00:23:04 +00:00
|
|
|
from python:3.11
|
2022-12-10 21:18:03 +00:00
|
|
|
|
|
|
|
env DEBIAN_FRONTEND=noninteractive
|
|
|
|
|
2023-10-09 10:39:23 +00:00
|
|
|
run apt-get update && apt-get install -y \
|
|
|
|
git
|
2023-10-03 15:55:57 +00:00
|
|
|
|
|
|
|
run curl -sSL https://install.python-poetry.org | python3 -
|
2022-12-10 21:18:03 +00:00
|
|
|
|
2023-10-03 15:55:57 +00:00
|
|
|
env PATH "/root/.local/bin:$PATH"
|
2022-12-10 21:18:03 +00:00
|
|
|
|
2023-10-03 15:55:57 +00:00
|
|
|
copy . /skynet
|
|
|
|
|
|
|
|
workdir /skynet
|
2022-12-10 21:18:03 +00:00
|
|
|
|
2023-10-09 10:39:23 +00:00
|
|
|
env POETRY_VIRTUALENVS_PATH /skynet/.venv
|
|
|
|
|
|
|
|
run poetry install
|
|
|
|
|
|
|
|
workdir /root/target
|
|
|
|
|
|
|
|
copy docker/entrypoint.sh /entrypoint.sh
|
|
|
|
entrypoint ["/entrypoint.sh"]
|
|
|
|
|
|
|
|
cmd ["skynet", "--help"]
|