mirror of
https://github.com/Balshgit/python-poetry.git
synced 2026-03-21 22:00:37 +03:00
add docker build instruction
This commit is contained in:
@@ -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/
|
||||
Reference in New Issue
Block a user