Update Dockerfile
Browse files- Dockerfile +5 -4
Dockerfile
CHANGED
|
@@ -31,9 +31,10 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
| 31 |
# Copy your application code
|
| 32 |
COPY . .
|
| 33 |
|
| 34 |
-
# Create Streamlit config file
|
| 35 |
RUN echo '[server]' > /app/.streamlit/config.toml \
|
| 36 |
-
&& echo 'maxUploadSize = 200' >> /app/.streamlit/config.toml
|
|
|
|
| 37 |
|
| 38 |
# Set permissions
|
| 39 |
RUN chmod -R 755 /app \
|
|
@@ -46,5 +47,5 @@ USER streamlit
|
|
| 46 |
# Expose the port Streamlit runs on
|
| 47 |
EXPOSE 7860
|
| 48 |
|
| 49 |
-
# Run Streamlit app
|
| 50 |
-
CMD ["streamlit", "run", "app.py"]
|
|
|
|
| 31 |
# Copy your application code
|
| 32 |
COPY . .
|
| 33 |
|
| 34 |
+
# Create Streamlit config file with XSRF protection disabled
|
| 35 |
RUN echo '[server]' > /app/.streamlit/config.toml \
|
| 36 |
+
&& echo 'maxUploadSize = 200' >> /app/.streamlit/config.toml \
|
| 37 |
+
&& echo 'enableXsrfProtection = false' >> /app/.streamlit/config.toml
|
| 38 |
|
| 39 |
# Set permissions
|
| 40 |
RUN chmod -R 755 /app \
|
|
|
|
| 47 |
# Expose the port Streamlit runs on
|
| 48 |
EXPOSE 7860
|
| 49 |
|
| 50 |
+
# Run Streamlit app with XSRF protection disabled
|
| 51 |
+
CMD ["streamlit", "run", "--server.enableXsrfProtection=false", "app.py"]
|