VTX-License-Server / Dockerfile
Vintendopower's picture
Convert license server to FastAPI Docker
06a55bc verified
Raw
History Blame Contribute Delete
292 Bytes
FROM python:3.12-slim
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user
ENV PATH=/home/user/.local/bin:$PATH
WORKDIR $HOME/app
COPY --chown=user requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY --chown=user . .
CMD ["python", "app.py"]