Skip to content

Pre-install extensions on Dockerfile #4778

Answered by fspaniol
fspaniol asked this question in Q&A
Discussion options

You must be logged in to vote

Actually, after coming back to it after some time, I managed to get my use case going, even with Docker. I think the issue that I had previously was related to me using the Helm chart which would, as stated earlier, mount some folders on top of the path that I was installing my own extension.

My current Dockerfile is something similar to this:

FROM node:alpine AS builder

RUN npm install -g vsce

WORKDIR /usr/app
COPY ./ /usr/app

RUN yarn install && \
    vsce package

FROM codercom/code-server:4.0.1 AS release

COPY --from=builder /usr/app/*.vsix /my-extension.vsix

RUN ["code-server", "--install-extension", "/my-extension.vsix"]

COPY "entrypoint.sh" /
ENTRYPOINT [ "/entrypoint.sh" ]

A…

Replies: 4 comments 11 replies

Comment options

You must be logged in to vote
6 replies
@fspaniol
Comment options

@jsjoeio
Comment options

@fspaniol
Comment options

@im-coder-lg
Comment options

@jsjoeio
Comment options

Comment options

You must be logged in to vote
4 replies
@fspaniol
Comment options

@code-asher
Comment options

@fspaniol
Comment options

@code-asher
Comment options

Comment options

You must be logged in to vote
1 reply
@RodogInfinite
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by jsjoeio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants