Update Dockerfile
Browse files- Dockerfile +16 -1
Dockerfile
CHANGED
@@ -19,5 +19,20 @@ RUN unzip ./movie_data_source/sampled_movie_dataset.zip
|
|
19 |
RUN pip3 install --no-cache-dir -r pre-requirements.txt
|
20 |
RUN pip3 install --no-cache-dir -r requirements.txt
|
21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
EXPOSE 8501
|
23 |
-
CMD streamlit run app.py
|
|
|
|
|
|
|
|
|
|
19 |
RUN pip3 install --no-cache-dir -r pre-requirements.txt
|
20 |
RUN pip3 install --no-cache-dir -r requirements.txt
|
21 |
|
22 |
+
# User
|
23 |
+
RUN useradd -m -u 1000 user
|
24 |
+
USER user
|
25 |
+
ENV HOME /home/user
|
26 |
+
ENV PATH $HOME/.local/bin:$PATH
|
27 |
+
|
28 |
+
WORKDIR $HOME
|
29 |
+
RUN mkdir app
|
30 |
+
WORKDIR $HOME/app
|
31 |
+
COPY . $HOME/app
|
32 |
+
|
33 |
EXPOSE 8501
|
34 |
+
CMD streamlit run app.py \
|
35 |
+
--server.headless true \
|
36 |
+
--server.enableCORS false \
|
37 |
+
--server.enableXsrfProtection false \
|
38 |
+
--server.fileWatcherType none
|