This repository has been archived by the owner on Feb 23, 2022. It is now read-only.
forked from hedyorg/hedy
-
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.
add Dockerfile for local development without python
- Add a Dockerfile to run the application without needing to install any python dependencies (or even python itself!) - Update app.py to bind to 0.0.0.0 in DEV mode so it can respond inside a container - Update Contributing.md with instructions for building and running a containerized version of the webapp
- Loading branch information
Showing
4 changed files
with
33 additions
and
1 deletion.
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,6 @@ | ||
.git | ||
.github | ||
*.md | ||
.dockerignore | ||
Dockerfile | ||
License.txt |
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,15 @@ | ||
FROM ubuntu:20.04 | ||
|
||
RUN apt update -y && apt install -y python3.8 python3-pip | ||
|
||
COPY requirements.txt /tmp/requirements.txt | ||
|
||
RUN pip3 install -r /tmp/requirements.txt | ||
|
||
WORKDIR /app | ||
|
||
COPY . . | ||
|
||
EXPOSE 5000 | ||
|
||
ENTRYPOINT ["python3.8", "app.py"] |
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