forked from nfoster1492/ClassMateBot-1
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added dockerfile, image builds but I cant run the container
- Loading branch information
1 parent
742b43c
commit 9f23b09
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Use the official PostgreSQL image as the parent image | ||
FROM ubuntu/postgres:latest | ||
|
||
# Add Python and Git | ||
RUN apt update && apt install -y python3 python3-pip git | ||
|
||
# Create a new directory for the application | ||
RUN mkdir /app | ||
|
||
# Clone the repository into the /app directory | ||
RUN git clone https://github.com/csc510-team5/ClassMateBot.git /app | ||
|
||
# Install any needed packages specified in requirements.txt | ||
# RUN python3 -m venv venv | ||
# RUN source venv/bin/activate | ||
RUN pip install -r /app/requirements.txt | ||
|
||
# Set the working directory to /app | ||
WORKDIR /app |