-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #108 from jbarciauskas/jbarciauskas/add-docker-sup…
…port Add Dockerfile to support building and running the XBlock workbench via a Docker container
- Loading branch information
Showing
3 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Dockerfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
FROM phusion/baseimage:latest | ||
RUN apt-get update && apt-get install -y \ | ||
build-essential \ | ||
git \ | ||
lib32z1-dev \ | ||
libjpeg62-dev \ | ||
libxml2-dev \ | ||
libxslt-dev \ | ||
python-dev \ | ||
python-setuptools \ | ||
xz-utils \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
RUN mkdir -p /usr/local/src/xblock-sdk | ||
WORKDIR /usr/local/src/xblock-sdk | ||
ADD . . | ||
RUN easy_install pip | ||
RUN make install | ||
EXPOSE 8000 | ||
ENTRYPOINT ["python", "manage.py"] | ||
CMD ["runserver", "0.0.0.0:8000"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters