Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Commit

Permalink
Use absolute paths in docker container since the workdir depends on t…
Browse files Browse the repository at this point in the history
…he execution environment
  • Loading branch information
twwd committed Jun 8, 2021
1 parent 99bdff6 commit 0e025af
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM python:3.9-slim

COPY requirements.txt ./
COPY requirements.txt /
RUN pip install --no-cache-dir -r requirements.txt

COPY ./tweet.py .
COPY ./tweet.py /

CMD [ "python", "./tweet.py" ]
CMD [ "python", "/tweet.py" ]

0 comments on commit 0e025af

Please sign in to comment.