change the container to be more production ready
This includes the code files in the docker image and creates a separate data dir, which means we don't need to manually mount files into the container anymore.
This commit is contained in:
parent
24aabd43f2
commit
af25d9c5a2
3 changed files with 12 additions and 3 deletions
|
|
@ -15,5 +15,10 @@ RUN pip install --no-cache-dir --upgrade --requirement requirements.txt
|
|||
|
||||
USER 10000:10001
|
||||
|
||||
COPY . ./
|
||||
|
||||
ENV UNWIND_DATA="/data"
|
||||
VOLUME ["/data"]
|
||||
|
||||
ENTRYPOINT ["/var/app/run"]
|
||||
CMD ["server"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue