-
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.
- Loading branch information
1 parent
aabf5e9
commit 0093227
Showing
1 changed file
with
7 additions
and
10 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 |
---|---|---|
@@ -1,27 +1,24 @@ | ||
# Use the official Python image as the base image | ||
FROM python:3.12 | ||
|
||
# Set the working directory in the container | ||
RUN mkdir -p "/beetseeker" | ||
|
||
WORKDIR ["/beetseeker"] | ||
|
||
# Clone the GitHub repository | ||
RUN git clone https://github.com/andrewjmetzger/beetseeker.git . | ||
|
||
RUN git clone https://github.com/andrewjmetzger/beetseeker.git | ||
|
||
# Set the working directory in the container | ||
WORKDIR ["/beetseeker"] | ||
|
||
# Install project dependencies | ||
RUN pip install --no-cache-dir -r requirements.txt | ||
|
||
COPY "./example_config.py" "./config.py" | ||
RUN chmod +x "./config.py" | ||
|
||
# Allow the config to be mounted | ||
VOLUME ["/beetseeker/config.py"] | ||
|
||
COPY "./example_config.py" "./config.py" | ||
RUN chmod +x "./config.py" | ||
|
||
# Expose the port the app runs on | ||
EXPOSE 8347 | ||
|
||
# Command to run the application | ||
ENTRYPOINT ["/bin/sh"] | ||
ENTRYPOINT ["python", "main.py"] |