Update Dockerfile

This commit is contained in:
Paillat
2023-02-06 00:46:01 +01:00
parent 6e7c59a284
commit 54b2a7daef

View File

@@ -4,9 +4,9 @@ FROM python:3.10.0
ENV PYTHONUNBUFFERED=1 ENV PYTHONUNBUFFERED=1
RUN git clone https://github.com/Paillat-dev/presentator.git RUN git clone https://github.com/Paillat-dev/presentator.git
RUN pip install -r /presentator/requirements.txt RUN pip install -r /presentator/requirements.txt
WORKDIR /presentator WORKDIR /presentator/code
RUN wget https://github.com/marp-team/marp-cli/releases/download/v2.3.0/marp-cli-v2.3.0-linux.tar.gz RUN wget https://github.com/marp-team/marp-cli/releases/download/v2.3.0/marp-cli-v2.3.0-linux.tar.gz
RUN tar -xvf marp-cli-v2.3.0-linux.tar.gz RUN tar -xvf marp-cli-v2.3.0-linux.tar.gz
RUN adduser -u 5678 --disabled-password --gecos "" appuser && chown -R appuser /presentator RUN adduser -u 5678 --disabled-password --gecos "" appuser && chown -R appuser /presentator/code
USER appuser USER appuser
CMD ["python", "main.py"] CMD ["python", "main.py"]