forked from prakhar1989/docker-curriculum
-
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.
move away from onbuild as they are deprecated. fixes prakhar1989#214
- Loading branch information
1 parent
e97b652
commit 021aeba
Showing
2 changed files
with
48 additions
and
19 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 |
---|---|---|
@@ -1,8 +1,18 @@ | ||
# Instructions copied from - https://hub.docker.com/_/python/ | ||
FROM python:3-onbuild | ||
FROM python:3 | ||
|
||
# set a directory for the app | ||
WORKDIR /usr/src/app | ||
|
||
# copy all the files to the container | ||
COPY . . | ||
|
||
# install dependencies | ||
RUN pip install --no-cache-dir -r requirements.txt | ||
|
||
# tell the port number the container should expose | ||
EXPOSE 5000 | ||
|
||
# run the command | ||
CMD ["python", "./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