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:
ducklet 2021-07-11 20:26:53 +02:00
parent 24aabd43f2
commit af25d9c5a2
3 changed files with 12 additions and 3 deletions

View file

@ -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"]