17 lines
326 B
Docker
17 lines
326 B
Docker
FROM python:3.11-slim
|
|
|
|
ENV PYTHONDONTWRITEBYTECODE=1 \
|
|
PYTHONUNBUFFERED=1
|
|
|
|
WORKDIR /app
|
|
|
|
COPY requirements.txt /app/requirements.txt
|
|
RUN pip install --no-cache-dir -r /app/requirements.txt
|
|
|
|
COPY app /app/app
|
|
COPY trades_company_stock.txt /app/trades_company_stock.txt
|
|
|
|
EXPOSE 8000 8001
|
|
|
|
CMD ["python", "-m", "app.run"]
|