You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
605 B
Docker
24 lines
605 B
Docker
FROM python:3.13-slim
|
|
|
|
# User setup
|
|
RUN adduser -u 1001 python_user
|
|
|
|
RUN mkdir /home/python_user/app && chown python_user:python_user /home/python_user/app
|
|
WORKDIR /home/python_user/app/
|
|
|
|
# Copy application files
|
|
COPY ./application /home/python_user/app
|
|
RUN rm -rf /home/python_user/app/test-env \
|
|
/home/python_user/app/.venv \
|
|
/home/python_user/app/mc-auth.config
|
|
RUN chown -R python_user:python_user /home/python_user/app
|
|
|
|
USER python_user
|
|
|
|
# Install python requirements
|
|
#COPY ./requirements.txt ./
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
|
|
CMD ["python", "start.py"]
|