| |
| FROM debian:11-slim |
|
|
| ENV DEBIAN_FRONTEND=noninteractive |
| ENV HOME=/home/user \ |
| PATH=/home/user/.local/bin:$PATH |
|
|
| |
| RUN apt-get update && apt-get install -y curl git sudo && \ |
| curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \ |
| apt-get install -y nodejs && \ |
| curl -fsSL https://code-server.dev/install.sh | sh && \ |
| rm -rf /var/lib/apt/lists/* |
|
|
| |
| RUN useradd -m -u 1000 user |
| WORKDIR $HOME/app |
|
|
| |
| |
| RUN mkdir -p $HOME/.config/code-server |
| COPY --chown=user:user config.yaml $HOME/.config/code-server/config.yaml |
|
|
| |
| RUN chown -R user:user $HOME |
|
|
| USER user |
|
|
| |
| CMD ["code-server", "--config", "/home/user/.config/code-server/config.yaml", "."] |