ThaiCodex / Dockerfile
microhum's picture
initial commit
220a370
raw
history blame
621 Bytes
FROM ubuntu:22.04
RUN apt-get -y update && apt-get -y install software-properties-common && apt-get -y install curl && apt-get -y install build-essential \
&& add-apt-repository -y ppa:deadsnakes/ppa && apt-get -y install python3.10 && apt-get -y install python3-pip
COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
# Set home to the user's home directory
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
WORKDIR $HOME/app
COPY --chown=user . $HOME/app
CMD ["sh", "-c", "python main.py & python app.py"]