Skip to content

Commit

Permalink
feat: Added Dockerfile and docker-compose.yml example (#10)
Browse files Browse the repository at this point in the history
* feat(Docker): Added Dockerfile to build image

* feat(Docker): Added example docker-compose
  • Loading branch information
Yimura authored Nov 23, 2021
1 parent 1ca6028 commit c9a09e7
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM python:3.9.9-bullseye

WORKDIR /app

COPY requirements.txt .

RUN pip install -r requirements.txt

COPY . .

ENTRYPOINT [ "sanic", "main:app", "--host=0.0.0.0", "--port=8080" ]
6 changes: 6 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: '3.9'
services:
samfetch:
build: .
ports:
- 8080:8080

0 comments on commit c9a09e7

Please sign in to comment.