mirror of
https://github.com/RafaelSolVargas/Vulkan.git
synced 2025-10-29 16:57:23 +00:00
The Dockerfile is added to define the container image for the application. It uses the Python 3.10.0 base image, sets the PYTHONUNBUFFERED environment variable, clones the Vulkan repository, installs the required dependencies, installs ffmpeg, creates a non-root user, and sets the command to run the main.py file. The docker-compose.yaml file is added to define the Docker Compose configuration for the application. It specifies a service named "vulkan" that builds the image using the Dockerfile and uses the .env file for environment variables.
11 lines
377 B
Docker
11 lines
377 B
Docker
FROM python:3.10.0
|
|
|
|
ENV PYTHONUNBUFFERED=1
|
|
|
|
WORKDIR /app
|
|
RUN git clone https://github.com/RafaelSolVargas/Vulkan.git /app
|
|
RUN pip install -r requirements.txt
|
|
RUN apt-get update && apt-get install -y software-properties-common && apt-get install -y ffmpeg
|
|
RUN adduser -u 5678 --disabled-password --gecos "" appuser && chown -R appuser /app
|
|
USER appuser
|
|
CMD ["python", "main.py"] |