An basic Dockerfile template to convert an existing Gitpod workspace image into an code-server workspace image.
- Fork this repo or use the repository generation method. The latter is recommended if you want to create an private repo without the mess of manual duplication.
- Change L3 of
Dockerfile
to your own Gitpod workspace image if you use custom one OR see below for the build args methood. - Build and ship it to whatever you want to do.
- Profit!
In some PaaS services like Railway which passes your variables in form of Docker build arguments. You just need to just update this specific line to look like this diff below:
-FROM gitpod/workspace-full AS final-image
+FROM ${CUSTOM_WORKSPACE_IMAGE} AS final-image
You can choose what variable name you use as an Docker build argument, but in this example above we chose CUSTOM_WORKSPACE_IMAGE
.