-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d78af0c
commit 6f735f5
Showing
5 changed files
with
31 additions
and
3 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
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,21 @@ | ||
# Dockerfile : InTeractively run OJ | ||
|
||
FROM nitin12384/django:v1 | ||
|
||
# Copy problem data | ||
ADD ./data /root/data | ||
|
||
# Copy the code and database of OJ | ||
ADD ./oj_django_project /root/oj_django_project | ||
|
||
# Since we are using my image nitin12384/django:v1, we already have all requirements installed | ||
# RUN pip install -r /root/oj_django_project/requirements.txt | ||
# G++ and python are also preinstalled | ||
|
||
#################################################### | ||
# Build with `docker build -t ojit1 -f it.dockerfile .` | ||
|
||
# -d for detached ? | ||
#################################################### | ||
# Run with `docker run --name ojitcont1 -it -p 8072:8072 -e OS_TYPE=UBUNTU_DOCKERIZED ojit1 /bin/bash` | ||
# Do `python /root/oj_django_project/manage.py runserver 0.0.0.0:8072 --noreload` |
Binary file not shown.
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
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