All checks were successful
hufs-notice-crawler-cicd / build_push_deploy (push) Successful in 8m35s
21 lines
393 B
Docker
21 lines
393 B
Docker
FROM python:3.12-slim
|
|
|
|
ENV PYTHONDONTWRITEBYTECODE=1
|
|
ENV PYTHONUNBUFFERED=1
|
|
|
|
WORKDIR /app
|
|
|
|
COPY requirements.txt .
|
|
|
|
RUN pip install --no-cache-dir --upgrade pip \
|
|
&& pip install --no-cache-dir -r requirements.txt
|
|
|
|
COPY app ./app
|
|
COPY sql ./sql
|
|
COPY .env.example ./.env.example
|
|
COPY README.md ./README.md
|
|
|
|
EXPOSE 8000
|
|
|
|
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]
|