Docker environment to create SimplyCode applications in.
To use the docker image, pull it from the GitHub Container Registry (ghcr.io).
A latest
version is not tagged for various reasons. To use the latest version, use the main
tag:
docker pull ghcr.io/simplyedit/simplycode-docker:main
Versioned images are also available:
docker pull ghcr.io/simplyedit/simplycode-docker:v0.5.0
For most use cases, the following command should be enough:
docker run \
--env "USER_GID=$(id -g)" \
--env "USER_ID=$(id -u)" \
--interactive \
--rm \
--tty \
--volume "${PWD}:/var/www/www/api/data" \
ghcr.io/simplyedit/simplycode-docker:main
This will mount the current working directory into the docker image at the right place, and start the SimplyCode server.
When using Docker Desktop, it is advised to use the --publish-all
flag to make the SimplyCode server available on the host machine.
That way, the SimplyCode server can be accessed by using the "Open in Browser" button in Docker Desktop.
Feedback and contributions are welcome. Please open an issue or pull request.
This repository should not have any significant code.
Currently, the only code is:
Dockerfile
that builds a docker image with SimplyCode installedentrypoint.sh
that is used to run SimplyCode in the Docker image (and do some checks).github/workflows/publish.yml
GitHub workflow that builds and publishes the docker image
Created by SimplyEdit under an MIT License.