-
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.
- Mounting sources to a docker container instead copying them into a …
…docker image
- Loading branch information
1 parent
531122f
commit 5a77a2b
Showing
3 changed files
with
36 additions
and
6 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--- | ||
docker_lib_folder: "/var/lib/docker" | ||
... |
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
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,9 +1,9 @@ | ||
FROM almalinux:9 | ||
RUN dnf install python39 -y | ||
RUN mkdir -p /code | ||
RUN mkdir -p /code/sources | ||
WORKDIR /code | ||
COPY req.txt sources/req.txt | ||
RUN python3.9 -m venv --system-site-packages --symlinks venv | ||
COPY /sources/* . | ||
RUN source venv/bin/activate && pip install -r req.txt | ||
RUN source venv/bin/activate && pip install -r sources/req.txt | ||
ENV DISCORD_TOKEN="{{ discord_token }}" | ||
ENTRYPOINT ["venv/bin/python3", "main.py"] | ||
ENTRYPOINT ["venv/bin/python3", "sources/main.py"] |