Skip to content

Commit

Permalink
techtrends: add Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
weiyshay committed Jul 15, 2024
1 parent 267d570 commit f2867db
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions techtrends/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
FROM python:3.8
LABEL maintainer="Katie Gamanji"

# Set the working directory in the container
WORKDIR /app

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

# Install packages defined in the requirements.txt file
RUN pip install -r requirements.txt

# Initialize the database with pre-defined posts
RUN python init_db.py

# Expose port 3111
EXPOSE 3111

# Command to run on container start
CMD [ "python", "app.py" ]

0 comments on commit f2867db

Please sign in to comment.