mirror of
https://github.com/devproje/balance-application.git
synced 2024-10-20 15:11:21 +00:00
build: add dockerfile
This commit is contained in:
parent
e3e51091d3
commit
a48644b381
1 changed files with 17 additions and 0 deletions
17
Dockerfile
Normal file
17
Dockerfile
Normal file
|
@ -0,0 +1,17 @@
|
|||
FROM python:3.11-alpine3.20
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN apk update \
|
||||
&& apk add --no-cache postgresql-dev gcc musl-dev make py3-uvloop \
|
||||
&& pip install -U pip setuptools wheel Cython
|
||||
|
||||
COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
COPY . .
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]
|
||||
|
Loading…
Reference in a new issue