Skip to content

Commit 983420d

Browse files
author
evantayloryates
authored
Merge pull request #31 from sanjeev-sreenath/dockerize
dockerize apod-api
2 parents c0705ae + 496e3f6 commit 983420d

File tree

4 files changed

+97
-70
lines changed

4 files changed

+97
-70
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ lib/
1010
.DS_Store
1111
.idea/
1212
apod/__pycache__/
13+
venv/

Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
FROM python:3-alpine
2+
3+
WORKDIR /usr/src/app
4+
COPY requirements.txt ./
5+
RUN pip install --no-cache-dir -r requirements.txt
6+
COPY . .
7+
EXPOSE 5000
8+
ENTRYPOINT ["python"]
9+
CMD ["application.py"]

0 commit comments

Comments
 (0)