You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
getDiscography/python/dockerfiles/python.dockerfile

23 lines
438 B

FROM debian:bullseye-slim
RUN apt update && apt upgrade -y
RUN apt install ffmpeg -y
RUN apt install curl python3-pip -y
ADD . /python
WORKDIR /python
RUN pip3 install -r requirements.txt
ENV FLASK_APP=app
# Set user and group
ARG USER=app
ARG GROUP=app
ARG UID=1000
ARG GID=1000
RUN groupadd -g ${GID} ${GROUP}
RUN useradd -u ${UID} -g ${GROUP} -s /bin/sh -m ${USER}
# Switch to user
USER ${UID}:${GID}
CMD ["python3","-u","app.py"]