Skip to content

Commit

Permalink
update update_docker.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Nubuki-all committed Nov 7, 2024
1 parent aedf7a9 commit 72fad73
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions update_docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
from update import varssaver

if len(sys.argv) == 1:
entry = """
# Base Image
entry = (
"""# Base Image
FROM colserra/fedora37_wf
# 1. Setup home directory, non interactive shell and timezone
Expand All @@ -18,11 +18,11 @@
COPY . .
# 3. Start bot
CMD ["bash","run.sh"]
"""
CMD ["bash","run.sh"]"""
)
else:
entry = """
# Base Image
entry = (
"""# Base Image
FROM fedora:37
#FROM colserra/fedora37_wf
# 2nd docker image allows skipping step 2-3 & 5-6
Expand Down Expand Up @@ -51,8 +51,8 @@
RUN if [[ $(arch) == 'aarch64' ]]; then dnf -qq -y history undo last; fi && dnf clean all
# 7. Start bot
CMD ["bash","run.sh"]
"""
CMD ["bash","run.sh"]"""
)


varssaver(entry, "Dockerfile")

0 comments on commit 72fad73

Please sign in to comment.