-
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.
Greatly simlify Dockerfile, docker-compose
- Loading branch information
1 parent
81b8985
commit 32f0f33
Showing
2 changed files
with
6 additions
and
21 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,22 +1,7 @@ | ||
# 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"] | ||
FROM python:3.9-slim-buster | ||
|
||
WORKDIR /app | ||
|
||
ADD . /beetseeker | ||
COPY main.py example_config.py slskd.py betanin.py ./ | ||
|
||
# Install project dependencies | ||
RUN pip install --no-cache-dir -r requirements.txt | ||
|
||
|
||
# Allow the config to be mounted | ||
VOLUME ["/beetseeker/config.py"] | ||
|
||
|
||
# Expose the port the app runs on | ||
EXPOSE 8347 | ||
|
||
# Command to run the application | ||
ENTRYPOINT ["python", "main.py"] | ||
CMD ["python", "main.py"] |
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,10 +1,10 @@ | ||
version: '3.8' | ||
version: '3.9' | ||
services: | ||
beetseeker: | ||
image: ghcr.io/andrewjmetzger/beetseeker:latest | ||
container_name: beetseeker | ||
volumes: | ||
- /path/to/config.py:/beetseeker/config.py | ||
- /path/to/custom/config.py:/app/config.py | ||
ports: | ||
- "8347:8347" | ||
restart: unless-stopped |