mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
22 lines
532 B
Docker
22 lines
532 B
Docker
FROM public.ecr.aws/lambda/python:3.10
|
|
|
|
# Set environment variables
|
|
ENV PYTHONDONTWRITEBYTECODE 1
|
|
ENV PYTHONUNBUFFERED 1
|
|
|
|
# Set work directory
|
|
WORKDIR /app
|
|
|
|
# Install system dependencies
|
|
#RUN apt-get update && apt-get install -y netcat-openbsd
|
|
|
|
# Install python dependencies
|
|
COPY ./requirements/base.txt ./requirements/base.txt
|
|
RUN pip install --upgrade pip
|
|
RUN pip install -r requirements/base.txt
|
|
|
|
# Copy project
|
|
COPY . .
|
|
|
|
# command to run on container start
|
|
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]
|