Skip to content

Commit

Permalink
Greatly simlify Dockerfile, docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewjmetzger committed Dec 11, 2023
1 parent 81b8985 commit 32f0f33
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 21 deletions.
23 changes: 4 additions & 19 deletions Dockerfile
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"]
4 changes: 2 additions & 2 deletions docker-compose.yml
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

0 comments on commit 32f0f33

Please sign in to comment.