Skip to content

Commit

Permalink
Merge pull request #4 from alquimistas-org/add-dockerfile-and-docker-…
Browse files Browse the repository at this point in the history
…compose

Add dockerfile
  • Loading branch information
matiasbertani authored Sep 5, 2023
2 parents 0401257 + 7b164fa commit e5968ca
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM python:3.11-slim

COPY Pipfile Pipfile.lock ./

RUN pip install --no-cache-dir pipenv && \
pipenv install --dev --system --ignore-pipfile

COPY . .

EXPOSE 8000

CMD ["pipenv", "run", "uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
# gamification_api

### Run the app

#### With docker

```bash
docker build -t gamification_api .
docker run -p 8000:8000 gamification_api
```

0 comments on commit e5968ca

Please sign in to comment.