KTVManager_Backend/dockerfile
Karl 372d9f8889
All checks were successful
Build and Publish Docker Image / build-and-push (push) Successful in 1m38s
rework docker i dockerfile
2025-07-14 14:09:53 +01:00

32 lines
651 B
Plaintext

FROM python:3.11-slim-bookworm
RUN apt-get update && apt-get install -y --no-install-recommends \
git \
libglib2.0-0 \
libsm6 \
libxrender1 \
libxext6 \
libgomp1 \
libgl1 \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir requests stem
RUN pip install --no-cache-dir git+https://github.com/karl0ss/requests_tor.git@ae1e85abb3bb2c25f431bd031c6d881986c626f6
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
ARG VERSION
RUN echo $VERSION > VERSION
EXPOSE 3001
ENV FLASK_ENV=production
RUN chmod +x run_docker.sh
CMD ["./run_docker.sh"]