[mod] use ghcr.io/linuxserver/code-server:4.0.1
This commit is contained in:
parent
d77be9ee1a
commit
9836f33de3
3 changed files with 41 additions and 0 deletions
26
code-serverx/Dockerfile
Normal file
26
code-serverx/Dockerfile
Normal file
|
@ -0,0 +1,26 @@
|
|||
#
|
||||
# add openjdk 11 and basex on code-server docker image
|
||||
# @author Andy Bunce
|
||||
FROM alpine:latest AS builder
|
||||
RUN apk --no-cache add zip
|
||||
ADD https://files.basex.org/releases/9.6.4/BaseX964.zip /srv
|
||||
RUN cd /srv && unzip *.zip && rm *.zip
|
||||
|
||||
# custom options
|
||||
#COPY .basex /srv/basex/
|
||||
|
||||
# Main image
|
||||
FROM ghcr.io/linuxserver/code-server:4.0.1
|
||||
LABEL author="Andy Bunce"
|
||||
LABEL company="Quodatum Ltd"
|
||||
LABEL maintainer="andy@quodatum.com"
|
||||
|
||||
|
||||
ENV JAVA_HOME="/usr/lib/jvm/default-jvm/"
|
||||
RUN apk add --no-cache bash openjdk11-jre-headless
|
||||
# Has to be set explictly to find binaries
|
||||
ENV PATH=$PATH:${JAVA_HOME}/bin
|
||||
|
||||
RUN adduser -h /srv -D -u 1000 basex
|
||||
COPY --from=builder --chown=basex:basex /srv/ /srv
|
||||
|
0
code-serverx/docker-compose.yml
Normal file
0
code-serverx/docker-compose.yml
Normal file
15
code-serverx/start.sh
Normal file
15
code-serverx/start.sh
Normal file
|
@ -0,0 +1,15 @@
|
|||
# This will start a code-server container and expose it at http://127.0.0.1:8080.
|
||||
# It will also mount your current directory into the container as `/home/coder/project`
|
||||
# and forward your UID/GID so that all file system operations occur as your user outside
|
||||
# the container.
|
||||
#
|
||||
# Your $HOME/.config is mounted at $HOME/.config within the container to ensure you can
|
||||
# easily access/modify your code-server config in $HOME/.config/code-server/config.json
|
||||
# outside the container.
|
||||
mkdir -p ~/.config
|
||||
docker run -it --name code-server -p 127.0.0.1:8080:8080 \
|
||||
-v "$HOME/.config:/home/coder/.config" \
|
||||
-v "$PWD:/home/coder/project" \
|
||||
-u "$(id -u):$(id -g)" \
|
||||
-e "DOCKER_USER=$USER" \
|
||||
codercom/code-server:latest
|
Loading…
Add table
Reference in a new issue