Files
computer-science-flash-cards/Dockerfile
2020-11-11 15:03:20 -08:00

19 lines
288 B
Docker

FROM python:3.5
MAINTAINER Tinpee <tinpee.dev@gmail.com>
ADD . /src
WORKDIR /src
RUN pip install --upgrade pip \
&& pip install flask gunicorn
COPY entrypoint.sh /
RUN sed -i 's/\r$//' /entrypoint.sh
RUN chmod +x /entrypoint.sh
VOLUME /src/db
EXPOSE 8000
CMD ["/entrypoint.sh"]