-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (19 loc) · 745 Bytes
/
Dockerfile
File metadata and controls
27 lines (19 loc) · 745 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# This dockerfile content was in majority written by ChatGPT 3.5 turbo
# Promt: help write a dockerfile to deploy a streamlit application on docker
# Use an official Python runtime as a parent image
FROM python:3.9-slim-buster
# Set the working directory to /app
WORKDIR /app
# Copy the current directory contents into the container at /app
COPY . /app
# Update and install gcc
RUN apt-get update \
&& apt-get -y install libpq-dev gcc
# Update pip
RUN /usr/local/bin/python -m pip install --upgrade pip
# Install any needed packages specified in requirements.txt
RUN pip install -r requirements.txt
# Expose port for the Streamlit app
EXPOSE 8501
# Run app.py when the container launches
CMD ["streamlit", "run", "OpenAI_Demos.py"]