Skip to content

Commit 9f48816

Browse files
Update Dockerfile
1 parent 1424e95 commit 9f48816

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Dockerfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
11
# Use an official Python runtime as a parent image
2-
FROM python:3.10
2+
FROM python:3.10-slim
33

44
# Set the working directory in the container
55
WORKDIR /app
66

77
# Copy the current directory contents into the container at /app
88
COPY . /app
99

10-
# Install any needed dependencies specified in requirements.txt
10+
# Install any needed packages specified in requirements.txt
1111
RUN pip install --no-cache-dir -r requirements.txt
1212

13-
# Expose the port number the Streamlit app runs on
13+
# Make port 8501 available to the world outside this container
1414
EXPOSE 8501
1515

16+
# Define environment variable
17+
ENV NAME DARKCODER
18+
1619
# Run app.py when the container launches
1720
CMD ["streamlit", "run", "app.py", "--server.port", "8501"]

0 commit comments

Comments
 (0)