22 lines
434 B
Docker
22 lines
434 B
Docker
FROM python:3.10-slim
|
|
|
|
ENV PYTHONUNBUFFERED=1 \
|
|
PIP_NO_CACHE_DIR=1
|
|
|
|
WORKDIR /app
|
|
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
build-essential \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY ./app /app/app
|
|
|
|
EXPOSE 7890 5555
|
|
# FastAPI / Flower
|
|
|
|
# 기본은 아무 것도 안 띄움. docker-compose가 command로 덮어씀
|
|
CMD ["bash"]
|