Move code from image to volume
Created execution script for the container image and moved code copy from Dockerfile to volume in compose. Now code changes don't require image rebuild.
This commit is contained in:
parent
adb5502cb8
commit
ae76ebc003
@ -4,7 +4,7 @@ RUN apk add --no-cache \
|
||||
py3-yaml \
|
||||
graphviz
|
||||
|
||||
WORKDIR /code
|
||||
COPY code/ .
|
||||
COPY run.sh /run.sh
|
||||
RUN chmod +x /run.sh
|
||||
|
||||
CMD ["python3", "puudot.py"]
|
||||
CMD ["/run.sh"]
|
||||
|
||||
@ -6,5 +6,6 @@ services:
|
||||
dockerfile: Dockerfile
|
||||
image: puudot:latest
|
||||
volumes:
|
||||
- ./code:/code
|
||||
- ./data:/data
|
||||
- ./config.yaml:/config.yaml
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user