Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Dockerfile #61

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# ############
#
# This Dockerfile is created by Gregor von Laszewski
# [email protected]
# You can create a container with
#
#
#
# docker build -t latex2edx:1.5.3
# docker tag latex2edx:1.5.3 latex2edx:latest
#
# to run it interactively do something like
#
# docker run -v `pwd`:/latex2edx -w /latex2edx --rm -it clatex2edx:latest /bin/bash
#
# #############

FROM ubuntu:18.04

ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get update
RUN apt-get install -y git
RUN apt-get install -y libxml2-dev libxml2-utils libxslt1-dev
RUN apt-get install -y texlive-full
RUN apt-get install -y texlive-latex-extra poppler-utils
RUN apt-get install -y dvipng
RUN apt-get install -y python
RUN apt-get install -y python-pip
RUN apt-get install -y libxml2-utils python-lxml

RUN pip install pip -U
RUN git clone https://github.com/mitocw/latex2edx.git

WORKDIR /latex2edx

RUN pip install -r requirements.txt
RUN pip install -r test_requirements.txt

RUN pip install .