moegoe-simple-api / Dockerfile
Artrajz's picture
Update Dockerfile
50d519b
raw
history blame
No virus
430 Bytes
FROM python:3.9.16-slim-bullseye
RUN mkdir -p /app
WORKDIR /app
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt install build-essential -yq && \
apt-get clean && \
apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false && \
rm -rf /var/lib/apt/lists/*
COPY requirements.txt /app
RUN pip install -r requirements.txt
COPY . /app
EXPOSE 7860
CMD ["python", "/app/app.py"]