Skip to content

Commit

Permalink
explicit paths (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
derenv authored Nov 24, 2024
1 parent 20fbdb9 commit 19cc6cd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ RUN apk update \
&& apk add --update --no-cache python3 py3-pip

# Set up VENV
RUN python -m venv ./osrs-bluesky-bot
RUN python -m venv /usr/src/app/osrs-bluesky-bot

# Install dependancies
COPY ./requirements.txt .
RUN source ./osrs-bluesky-bot/bin/activate \
COPY /usr/src/app/requirements.txt .
RUN source /usr/src/app/osrs-bluesky-bot/bin/activate \
&& pip install --upgrade pip \
&& pip install -r requirements.txt

Expand All @@ -34,4 +34,4 @@ ENV OSRS_RSS_URL=https://secure.runescape.com/m=news/latest_news.rss?oldschool=t

# Run
COPY main.py .
CMD ["source", "./osrs-bluesky-bot/bin/activate", "&&", "exec", "python", "main.py"]
CMD ["source", "/usr/src/app/osrs-bluesky-bot/bin/activate", "&&", "exec", "python", "main.py"]

0 comments on commit 19cc6cd

Please sign in to comment.