Erste, funktionierende Version!
This commit is contained in:
29
Dockerfile
29
Dockerfile
@@ -4,15 +4,15 @@ FROM ghcr.io/linuxserver/baseimage-ubuntu:jammy
|
||||
ARG BUILD_DATE
|
||||
ARG VERSION
|
||||
ARG CODE_RELEASE
|
||||
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
|
||||
LABEL maintainer="aptalca"
|
||||
LABEL build_version="version:- ${VERSION} Build-date:- ${BUILD_DATE}"
|
||||
LABEL maintainer="musabe24"
|
||||
|
||||
# environment settings
|
||||
ARG DEBIAN_FRONTEND="noninteractive"
|
||||
ENV HOME="/config"
|
||||
|
||||
RUN \
|
||||
echo "**** install runtime dependencies ****" && \
|
||||
echo "**** install runtime dependencies and texlive-full ****" && \
|
||||
apt-get update && \
|
||||
apt-get install -y \
|
||||
git \
|
||||
@@ -21,23 +21,12 @@ RUN \
|
||||
nano \
|
||||
net-tools \
|
||||
netcat \
|
||||
sudo && \
|
||||
echo "**** install texlive-full ****" && \
|
||||
apt-get update &&\
|
||||
apt-get install -y \
|
||||
texlive-full \
|
||||
sudo && \
|
||||
sudo
|
||||
|
||||
RUN \
|
||||
echo "**** install code-server ****" && \
|
||||
if [ -z ${CODE_RELEASE+x} ]; then \
|
||||
CODE_RELEASE=$(curl -sX GET https://api.github.com/repos/coder/code-server/releases/latest \
|
||||
| awk '/tag_name/{print $4;exit}' FS='[""]' | sed 's|^v||'); \
|
||||
fi && \
|
||||
mkdir -p /app/code-server && \
|
||||
curl -o \
|
||||
/tmp/code-server.tar.gz -L \
|
||||
"https://github.com/coder/code-server/releases/download/v${CODE_RELEASE}/code-server-${CODE_RELEASE}-linux-amd64.tar.gz" && \
|
||||
tar xf /tmp/code-server.tar.gz -C \
|
||||
/app/code-server --strip-components=1 && \
|
||||
curl -fsSL https://code-server.dev/install.sh | sh && \
|
||||
echo "**** clean up ****" && \
|
||||
apt-get clean && \
|
||||
rm -rf \
|
||||
@@ -48,6 +37,10 @@ RUN \
|
||||
|
||||
# add local files
|
||||
COPY /root /
|
||||
COPY --chmod=755 install-extensions.sh /usr/local/bin/install-extensions.sh
|
||||
|
||||
# ports and volumes
|
||||
EXPOSE 8443
|
||||
|
||||
# Set the default command to run when starting the container
|
||||
ENTRYPOINT ["install-extensions.sh"]
|
||||
Reference in New Issue
Block a user