Skip to content

Commit

Permalink
Test workdir after clone
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewjmetzger committed Dec 10, 2023
1 parent aabf5e9 commit 0093227
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions Dockerfile
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"]

0 comments on commit 0093227

Please sign in to comment.