Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add Dockerfile #30

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

add Dockerfile #30

wants to merge 3 commits into from

Conversation

bitplane
Copy link

@bitplane bitplane commented Dec 9, 2024

Add a Dockerfile, a script to start it on the machine, and a post-build script that runs the first time you execute it on a machine with a GPU (some things won't build without CUDA in the builder, which is currently unsupported by buildx)

@bitplane bitplane force-pushed the docker branch 2 times, most recently from 3f7fc6c to fd81a7f Compare December 9, 2024 03:57
@bitplane
Copy link
Author

bitplane commented Dec 9, 2024

Nothing to do with my day job, no conflict of interest or IP claims - all my own sweat and tears

@microsoft-github-policy-service agree

Add a post-build script that runs the first time you execute it on
a machine with a GPU, since some stuff won't build in the builder

Changed app.py to serve on 0.0.0.0, 'cause otherwise we can't expose
the ports
Dockerfile Outdated
# git and build-essential are needed for post_install.sh script.
# vim and strace are useful for debugging, remove those if you want to.
RUN apt update && \
apt upgrade && \
Copy link

@AnotiaWang AnotiaWang Dec 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe missing a -y option here in apt upgrade? Otherwise docker will fail:

Need to get xxxMB of archives.
After this operation, xxxMB of additional disk space will be used.
Do you want to continue? [Y/n] Abort.
ERROR: failed to solve: process "/bin/sh -c apt upgrade" did not complete successfully: exit code: 1

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oof! Yes I added this without testing it. You wouldn't believe how many times I've rebuilt this image! Thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants