karideo/back/Dockerfile

35 lines
691 B
Docker
Raw Normal View History

2020-01-02 22:43:06 +01:00
FROM python:alpine3.6
2019-12-21 21:52:26 +01:00
2020-01-03 21:45:49 +01:00
RUN apk update && \
apk upgrade && \
apk add --update-cache \
--repository http://dl-cdn.alpinelinux.org/alpine/edge/community \
--repository http://dl-cdn.alpinelinux.org/alpine/edge/main \
--repository http://dl-cdn.alpinelinux.org/alpine/edge/testing \
build-base mediainfo
2019-12-21 21:52:26 +01:00
2020-01-02 22:43:06 +01:00
RUN pip3 install --upgrade pip
2019-12-21 21:52:26 +01:00
2020-01-03 21:45:49 +01:00
RUN pip3 install sanic==19.9.0
2019-12-21 21:52:26 +01:00
2020-01-02 22:43:06 +01:00
RUN pip3 install sanic-cors
2019-12-21 21:52:26 +01:00
2020-01-02 22:43:06 +01:00
RUN pip3 install sanic-simple-swagger
2019-12-21 21:52:26 +01:00
2020-01-02 22:43:06 +01:00
RUN pip3 install python-dateutil
2019-12-21 21:52:26 +01:00
2020-01-02 22:43:06 +01:00
RUN pip3 install realog
2019-12-21 21:52:26 +01:00
2020-01-02 22:43:06 +01:00
RUN pip3 install python-magic
RUN pip3 install pymediainfo
2019-12-21 21:52:26 +01:00
EXPOSE 80
ADD src /application/
WORKDIR /application/
2020-01-02 22:43:06 +01:00
CMD ["python3", "-u", "./app_video.py"]
2019-12-21 21:52:26 +01:00