This repository has been archived on 2023-08-08. You can view files and clone it, but cannot push or open issues or pull requests.
PassManager/Dockerfile

27 lines
541 B
Docker
Raw Normal View History

2022-10-29 22:09:16 +00:00
FROM python:3.11-slim
2022-10-14 15:54:29 +00:00
# Keeps Python from generating .pyc files in the container
ENV PYTHONDONTWRITEBYTECODE=1
# Turns off buffering for easier container logging
ENV PYTHONUNBUFFERED=1
WORKDIR /app
# Creates new user
RUN adduser -u 1000 --disabled-password --gecos "" appuser && chown -R appuser /app
2022-10-14 15:54:29 +00:00
# Install deps
RUN apt update && apt full-upgrade -y
# Install pip requirements
RUN pip install -U pip setuptools wheel
COPY requirements.txt .
RUN pip install -r requirements.txt
2022-10-14 15:54:29 +00:00
COPY . /app
USER appuser
2022-10-29 22:09:16 +00:00
CMD ["python", "main.py"]