diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..b2fcb9e --- /dev/null +++ b/.dockerignore @@ -0,0 +1,2 @@ +dist/* +**/*.pyc diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..0528a1b --- /dev/null +++ b/Dockerfile @@ -0,0 +1,20 @@ +FROM ubuntu:16.04 + +RUN apt-get update && apt-get install -y \ + ca-certificates \ + locales \ + python3 \ + python3-setuptools +RUN localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 +RUN mkdir /usr/src/app +COPY setup.cfg /usr/src/app +COPY setup.py /usr/src/app +COPY README.md /usr/src/app +COPY asciinema /usr/src/app/asciinema +WORKDIR /usr/src/app +RUN python3 setup.py install +ENV LANG en_US.utf8 +ENV SHELL /bin/bash +ENV USER docker +WORKDIR /root +CMD ["asciinema", "rec"]