Polo123's picture
Update Dockerfile
13d5e40 verified
raw
history blame
998 Bytes
FROM python:3.8.9
#WORKDIR /app
COPY . .
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y git
RUN echo "Shrey $PWD"
RUN apt-get -y install rsync
RUN git clone -b oasis_connector --single-branch https://github.com/arangodb/interactive_tutorials.git
RUN git clone -b movie-data-source --single-branch https://github.com/arangodb/interactive_tutorials.git movie_data_source
RUN rsync -av interactive_tutorials/ ./ --exclude=.git
RUN ls
RUN chmod -R 755 ./tools
RUN unzip ./movie_data_source/sampled_movie_dataset.zip
RUN pip3 install --no-cache-dir -r pre-requirements.txt
RUN pip3 install --no-cache-dir -r requirements.txt
# User
#RUN useradd -m -u 1000 user
#USER user
#ENV HOME /home/user
#ENV PATH $HOME/.local/bin:$PATH
#WORKDIR $HOME
#RUN mkdir app
#WORKDIR $HOME/app
#COPY . $HOME/app
EXPOSE 8501
CMD streamlit run app.py \
--server.headless true \
--server.enableCORS false \
--server.enableXsrfProtection false \
--server.fileWatcherType none