add docker build instruction

This commit is contained in:
2023-01-18 02:19:50 +03:00
parent 51a7f5f578
commit a328058a58
3 changed files with 16 additions and 13 deletions

View File

@@ -4,16 +4,11 @@ services:
python:
image: "poetry-python:latest"
container_name: 'poetry-python'
user: ${USER}
build:
context: .
dockerfile: Dockerfile
args:
- USER=${USER}
volumes:
- ./poetry/:/poetry/
command: >
bash -c "
cp /code/* /poetry -r
&& sleep 2
&& chown ${USER}:$USER -R /poetry
"
- ./poetry/:/poetry/