Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds a Dockerfile for creating a helix image that is ready-to-use for editing through volume mounts.
Usage
Building the image
docker build -t helix .
Running
hx
on your pwddocker run --rm -it -v ${pwd}:/home/helixuser/workspace helix
Considerations
--release
flag isn't currently set oncargo build
; didn't seem wise to strip debug info for nowdev
build that is similar in setup to therelease
stage, but isFROM build
so that rust tooling is included. That would enable development from within the container for helix, within helixHELIX_DISABLE_AUTO_GRAMMAR_BUILD=1
. If this isn't affecting others it can be removed.~/.bashrc
exist in case you want to run the image with--entrypoint /bin/bash
. TheENV
s that do the same thing are needed for theENTRYPOINT
.inspired by #2601 (comment)