revised code-server config dock
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
**Vaessl: code-server adjustments**
|
||||
|
||||
Before developing on code-server I configure a Dockerfile to install all packages needed for Spring Boot, Java and Vite. I install openjdk, npm, nodejs and yarn and set the environment variables for Java. Since the linuxserver code-server image doesn't come with root access for its default user abc out of the box every privileged action will be baked in here:
|
||||
Before developing on code-server I configure a Dockerfile to install all packages needed for Spring Boot, Java and Vite.
|
||||
|
||||
I install openjdk 25, nodejs 24.x and yarn and set the environment variables for Java.
|
||||
|
||||
Since the linuxserver code-server image doesn't come with root access for its default user abc out of the box every privileged action will be baked in here:
|
||||
|
||||
```
|
||||
FROM lscr.io/linuxserver/code-server:latest
|
||||
@@ -8,12 +12,13 @@ FROM lscr.io/linuxserver/code-server:latest
|
||||
USER root
|
||||
|
||||
RUN apt update && apt install -y \
|
||||
curl ca-certificates \
|
||||
openjdk-25-jdk \
|
||||
curl ca-certificates openjdk-25-jdk \
|
||||
# Add nodejs for React/Vite
|
||||
&& curl -fsSL https://deb.nodesource.com/setup_24.x | bash - \
|
||||
&& apt install -y nodejs \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Set Java Environment
|
||||
ENV JAVA_HOME=/usr/lib/jvm/java-25-openjdk-amd64
|
||||
ENV PATH="$JAVA_HOME/bin:${PATH}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user