Coder Social home page Coder Social logo

Comments (4)

AurangAsif avatar AurangAsif commented on July 24, 2024 1
  1. Persist extensions
    Basically, add commands in your Dockerfile such as
# IMPORTANT: Make sure to put any install commands after this one
# Fix permissions for code-server
RUN sudo chown -R coder:coder /home/coder/.local

# Seperate lines
RUN code-server --install-extension esbenp.prettier-vscode
RUN code-server --install-extension foo.bar

# One command
RUN code-server --install-extension esbenp.prettier-vscode --install-extension foo.bar
  1. Persist files

from deploy-code-server.

AurangAsif avatar AurangAsif commented on July 24, 2024

You can add more Docker commands into the Dockerfile to install additional software like so:

# You can add custom software and dependencies for your environment here. Some examples:

# RUN code-server --install-extension esbenp.prettier-vscode
# RUN sudo apt-get install -y build-essential
# RUN COPY myTool /home/coder/myTool

# Install NodeJS
RUN sudo curl -fsSL https://deb.nodesource.com/setup_15.x | sudo bash -
RUN sudo apt-get install -y nodejs

Taken from https://github.com/cdr/deploy-code-server/blob/main/guides/railway.md.

For pip search 'Install pip in docker' on google for guidance

from deploy-code-server.

luni-moon avatar luni-moon commented on July 24, 2024

Ah, ok, thank you. Sorry.

from deploy-code-server.

luni-moon avatar luni-moon commented on July 24, 2024

One more question, is there a way to keep all extensions installed and any code or repositories, to not be deleted when updating to a new version through remote? Also, is there any way I can get a PHP site to work as an HTML site, through Dockerfile? Thank you so much!

from deploy-code-server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.