mirror of
https://github.com/ijaric/voice_assistant.git
synced 2025-12-17 04:26:18 +00:00
Basic Docker files
This commit is contained in:
18
src/fastapi_example/Dockerfile
Normal file
18
src/fastapi_example/Dockerfile
Normal file
@@ -0,0 +1,18 @@
|
||||
FROM python:3.11
|
||||
|
||||
RUN apt-get update
|
||||
|
||||
WORKDIR /opt/app
|
||||
|
||||
ENV PYTHONPATH '/opt/app'
|
||||
|
||||
COPY pyproject.toml ./
|
||||
COPY poetry.lock ./
|
||||
RUN apt-get update \
|
||||
&& pip install poetry \
|
||||
&& poetry config virtualenvs.create false \
|
||||
&& poetry install --no-dev
|
||||
|
||||
COPY backend .
|
||||
|
||||
# CMD ["python", "-m", "bin"]
|
||||
Reference in New Issue
Block a user